1
1
mirror of https://github.com/Shizmob/arcade-docs.git synced 2024-12-24 04:14:51 +01:00
arcade-docs/igs/peripherals.md

97 lines
4.7 KiB
Markdown
Raw Normal View History

2023-04-10 16:42:59 +02:00
# Code Generator
## Briefing
Code generator is a calculator shaped tool in companion with IGS GP1 board, for monitoring bookkeeping info, defusing the time bomb and adjusting RNG parameters, by deciphering the password generated by the RNG and generating new passwords for setting it up.
This kind of device is mostly found in C/S series slot machines, but apprantally IGS GP1 is also using them.
Each code generator is bind to a range of serial code of IGS GP1 board, thus it's only partially interchangeable between differnet boards.
Obviously, games that aren't slot machine/redemption games won't make use of this device even if running on the GP1 board.
**Note: the following content is based on how code generator works on C/S series slot machine. IGS GP1 may not use all the features, or use them in different ways.**
2023-04-11 04:56:59 +02:00
## Games Found Using This Device
* 西遊爭霸/鬥戰勝佛 (MD401CN?) (Yuehua Software)
2023-11-07 04:42:59 +01:00
* Trick Or Treat (M800CN) (Yuehua Software)
* Ocean King 3: Monster Awaken (MD900US) `#DOC:Ocean King 3: Monster Awaken (MD900US) manual, revision 17-06-13`
2023-04-11 04:56:59 +02:00
2023-04-10 16:42:59 +02:00
## Time Bomb
Time bomb is a way of enforcing revenue sharing when other methods such as contracts or e-cash are considered unfeasible or inappropriate.
2023-04-11 03:02:35 +02:00
The owner of the machine could set a time bomb to be triggered after the machine has been running for a certain time period. When the time bomb is triggered, the machine will run into a lockdown state, with warning message "time extension required" displayed. To defuse this state, a "time extension" or "bookkeping report" command is required to be executed from the test menu.
2023-04-10 16:42:59 +02:00
2023-04-11 03:02:35 +02:00
When executing these commands, a set of credential will be displayed and the machine will require a defuse password to be typed in. These credentials has to be typed into the code generator, which is kept by the owner rather than given to the tenant. After typing in the credential, the code generator deciphers bookkeeping infomation from the credential, and displays the revenue during this time period and password for defusing the time bomb.
2023-04-10 16:42:59 +02:00
2023-04-11 03:02:35 +02:00
The tenant will only receive the password after his share is paid. After the correct password is typed in, the machine will turn back to its normal state.
2023-04-10 16:42:59 +02:00
## Adjusting RNG Parameters
2023-11-07 04:42:59 +01:00
The test menu of IGS GP1 based slot machine (or at least for some games that make use of code generator) only displays current settings, but the settings cannot be changed on the machine.
2023-04-10 16:42:59 +02:00
2023-04-11 03:02:35 +02:00
To change the settings, the serial number of the board has to be typed into the code generator, then parameters including coin to credit ratio, [RTP% & PARS](https://en.wikipedia.org/wiki/Slot_machine#Payout_percentage), time period for time bomb, etc. could be set up on it.
2023-04-10 16:42:59 +02:00
After settings has been done, a password encrypted with current settings will be generated. This password has to be typed into the machine to update the parameters of the RNG.
## RNG Manipulation
2023-04-11 03:02:35 +02:00
Sometimes a code generator will have functionalities to manipulate the RNG, including sudden tightening/loosing of RTP%, spiking/smoothing PARS, deterministic results, or executing other OEM predefined RNG routines.
2023-04-10 16:42:59 +02:00
Just like adjusting RNG parameters, these functionalities are also sent to the RNG as passwords typed in from the machine.
Despite these functionalities showing up on most of the code generators, whether the command will be accepted and executed successfully is determined by the game/RNG.
## Keypad layout
<table>
<tr><td colspan=4>(LCD dot matrix screen)</td></tr>
<tr>
<td>1</td><td>4</td><td>7</td><td>DEL</td>
</tr>
<tr>
<td>2</td><td>5</td><td>8</td><td>0</td>
</tr>
<tr>
<td>3</td><td>6</td><td>9</td><td>OK</td>
</tr>
<tr>
<td>&nbsp;</td><td colspan=2>MOVE/+-</td><td>&nbsp;</td>
</tr>
</table>
2023-04-14 05:36:04 +02:00
## Hardware Specification
### Variation 1: `#DOC:Maxim DS5003 Datasheet Rev.0`
**CPU:** Maxim DS5003 security-hardened microcontroller, Intel 8051 compatible, 16MHz ?
**ROM:** 128KB SRAM as ROM
**RAM:** 256 bytes fused in (128B direct addressing, 128B indirect addressing)
**Power:** 2x AAA battery (master); Built in CR2032 (backup)
**Others:** SRAM emergency clear signal - not sure if used in this device
* It could be bricked if the CR2032 runs out or removed as the master SRAM will be wiped !
### Variation 2: `#DOC:STC STC12C5A60S2 Datasheet version Jul. 19 2015`
**CPU:** STC 12C5A60S2 microcontroller, Intel 8051 compatible, 35MHz max ("1T" microcontroller - equals to ~420MHz on original Intel 8051)
**ROM:** 60KB fused in
**RAM:** 1280 bytes fused in, 256B direct addressing, 1KB indirect addressing
**Power:** 2x AAA battery
### Variation 3: `#DOC: STM32F100C8 Datasheet DocID16455 Rev.9 `
**CPU:** ST electronics STM32F100C8, 32MHz
**ROM:** 128KB fused in
**RAM:** 8KB SRAM fused in
**Power:** 2x AAA battery