Acrosser Technology AR-B5292 User Manual

Acrosser Technology AR-B5292 User Manual

Pci i/o board with discrete i/o, battery backup sram, timer, power-off intrusion event logger and protect-u

Advertisement

Quick Links

AR-B5292 User‟s Manual
AR-B5292 Gaming Board
PCI I/O Board with discrete I/O, battery backup SRAM,
Timer, power-off intrusion Event Logger and Protect-U
Edition: 1.1
Book Number: AR-B5292-09.04.06
AR-B5292 PCI I/O board with discrete I/O, battery backup SRAM,
1/99
Timer, power off intrusion event logger and Protect-U

Advertisement

Table of Contents
loading

Summary of Contents for Acrosser Technology AR-B5292

  • Page 1 PCI I/O Board with discrete I/O, battery backup SRAM, Timer, power-off intrusion Event Logger and Protect-U Edition: 1.1 Book Number: AR-B5292-09.04.06 AR-B5292 PCI I/O board with discrete I/O, battery backup SRAM, 1/99 Timer, power off intrusion event logger and Protect-U...
  • Page 2: Document History

    AR-B5292 User‟s Manual Document History Version Date Description 2007/08/10 Initial release 2009/04/06 1.Notice for Rechargeable battery(P.99) Please charge the battery 24hrs firstly before using. 2.Modify Audio output connector(P.14) 2/99...
  • Page 3 Trademarks AR-B5292 is a registered trademark of Gaming and Multimedia Acrosser. IBM PC is a registered trademark of International Business Machines Corporation. Pentium is a registered trademark of Intel Technologies Inc. Award is a registered trademark of Award Software International, Inc. Other product names mentioned herein are used for identification purposes only and may be trademarks and/or registered trademarks of their respective companies.
  • Page 4: Table Of Contents

    AR-B5292 User‟s Manual Contents 1 INTRODUCTION ............5 ................5 PECIFICATIONS ................6 ................7 LOCK IAGRAM 2 INSTALLATION .............. 8 ..................8 OCATIONS ........ 12 IST OF ONNECTORS AND UMPER ETTINGS ........13 UMPER SETTING AND EFINITIONS 3 BIOS SETTING ............18 MAIN SETUP ................
  • Page 5: Introduction

    915GME Chipset. It supports the Pentium M and Celeron M processors, while coming with a 400/533MHz Front Side Bus. The AR-B5292 is a Complete Platform that totally supports Gaming Application. ex. Random Number Generator, JAMMA (Japanese Amusement Machine Manufacturers' Association) and General Gaming interface, non-volatile Memory, and Security Protection.
  • Page 6: What You Have

    AR-B5292 User‟s Manual 1.2 What You Have Before you begin to install your AR-B5292 board, please make sure that the following items are inside the AR-B5292 package.  The quick manual  1 AR-B5292 board  1 Software utility CD...
  • Page 7: Block Diagram

    AR-B5292 User‟s Manual 1.3 Block Diagram Dual Channel DDR2 North Bridge LVDS 6 USB GPIO 2 SATA Dual SRAM EEPRO CF/HD KB/MS COM3 、 COM4 COM1 ccTalk1 、 ccTalk2 Serial Poart 1. iButtoon 2. Second RTC COM5 、 COM6 3. PTU 4.
  • Page 8: Installation

    AR-B5292 User‟s Manual INSTALLATION This chapter describes the installation of AR-B5292. At first, it shows the Function diagram and the layout of AR-B5292. It then describes the unpacking information which you should be careful with, as well as the jumper/switch settings for the AR-B5292 configuration 2.1 Locations...
  • Page 9 AR-B5292 User‟s Manual SCN1 D-Sub 15-pin VGA connector COM1 D-Sub 9-pin RS232 connector Super I/O Controller Winbond W3627EHF The Buzzer for PC beep sound SCN2 IDE PATA Hard Disk Connector 72 PINs Golden Fingers General Gaming interface SATA1 & SATA2...
  • Page 10 AR-B5292 User‟s Manual  Standard Connectors (Bottom Side)  Acrosser‟s Own Connectors and Jumper Switch Settings. 10/99...
  • Page 11 AR-B5292 User‟s Manual J3(optional) SW2 & SW3 Spare user-defined GPIOs (optional) Software readable switch LED1 Keyboard Lock LED for Power & HD & and PS_ON FAN1 SW5 & SW6 CPU Fan connector Pin header for switching to ccTalk or RS232...
  • Page 12: List Of Connectors And Jumper Settings

    AR-B5292 User‟s Manual 2.2 List of Connectors and Jumper Settings  *The number in the sign is the ordinal in chapter 2.3 List of Connectors and Jumper Settings Function Part Reference Description and Note Serial Port 1. COM1 1. COM1 is D-sub 9 RS-232 port 2.
  • Page 13: Jumper Setting And Own Pin Definitions

    AR-B5292 User‟s Manual 2.3 Jumper setting and Own Pin Definitions (user-defined GPIOs [optional]) SIGNAL SIGNAL LED1 (LED for Power & HD & and PS_ON) SIGNAL PS-ON Hard GREEN Disk YELLOW Power Setting SW5 & SW6 (Pin header for switching to...
  • Page 14 AR-B5292 User‟s Manual (Rechargeable Battery for micro controller) SIGNAL 3.3V BAT1 (Battery for SRAM) SIGNAL 3.3V JP11 & JP5 (SRAM1 and SRAM2 Clear) SIGNAL JP11 for SRAM1 SRAM Close Clear JP5 for SRAM2 Keep Open Data STATUS SETTING (First RTC Reset)
  • Page 15 AR-B5292 User‟s Manual JP3 & KBMS1(Keyboard Lock and JST SIGNAL SIGNAL MS data connector for Keyboard and Mouse) KB data clock clock SIGNAL 6 5 4 3 2 1 Keyboard Open Lock Keyboard Close Unlock FAN1 (CPU Fan connector) SIGNAL...
  • Page 16 AR-B5292 User‟s Manual LVDS1 (Connector for LVDS signals) PIN SIGNAL PIN SIGNAL LCDVCC CLOCK+ 17 CLOCK- TX2- TX2+ TX1- TX1+ TX0- TX0+ TX3- TX3+ LCDVCC 29 LCDVCC JP9 & JP10 (Switch for setting audio STATUS SETTING out with or without Amplifier)
  • Page 17 AR-B5292 User‟s Manual 17/99...
  • Page 18: Bios Setting

    AR-B5292 User‟s Manual BIOS SETTING This chapter describes the BIOS menu displays and explains how to perform common tasks needed to get up and running. It also gives detailed explanation of the elements found in each of the BIOS menus. The following topics are covered: ...
  • Page 19: Main Setup

    AR-B5292 User‟s Manual 3.1 MAIN SETUP Once you enter the AwardBIOS™ CMOS Setup Utility, the Main Menu will appear on the screen. Use the arrow keys to highlight the item and then use the <Pg Up> <Pg Dn> keys to select the value you want in each item.
  • Page 20: Advanced Chipset Setup

    AR-B5292 User‟s Manual 3.2 Advanced Chipset Setup Option Choice Description This category speeds up Power On Self Test (POST) after Quick Power On Enabled you have powered up the computer. If it is set to Enable, Disabled Self Test BIOS will shorten or skip some check items during POST.
  • Page 21: Pnp/Pci Setup

    AR-B5292 User‟s Manual 3.3 PnP/PCI setup Option Choice Description Normally, you leave this field Disabled. Select Enabled to reset Extended System Configuration Data (ESCD) Reset Configuration Enabled when you exit Setup. If you have installed a new add-on Disabled Data and the system reconfiguration has caused such a serious conflict, then the operating system can not boot.
  • Page 22: Peripherals Setup

    AR-B5292 User‟s Manual 3.4 Peripherals Setup Option Choice Description Onboard Serial Port 1 Serial Port 1: 3F8 / IRQ4 Select an address and the Onboard Serial Port 2 Serial Port 2: 2F8 / IRQ3 corresponding interrupt for each Serial Port 3: 3E8 / IRQ11...
  • Page 23: Pc Health Setup

    AR-B5292 User‟s Manual 3.5 PC Health Setup This section shows the parameters in determining the PC Health Status. These parameters include temperatures, fan speeds, and voltages. 23/99...
  • Page 24: Boot Setup

    AR-B5292 User‟s Manual 3.6 Boot setup Option Choice Description Hard Disk CDROM First / Second / Third The BIOS attempts to load the USB-FDD operating system from the devices in Boot Device/Other Boot USB-CDROM the sequence selected in these items.
  • Page 25: Exit Setup

    AR-B5292 User‟s Manual 3.7 Exit SETUP Option Choice Description Press “Y” to store the selections made in the menus in CMOS – a special Pressing <Enter> on this section of memory that stays on after item for confirmation: you turn your system off. The next time you boot your computer, the BIOS Save &...
  • Page 26 AR-B5292 User‟s Manual Type the password, up to eight characters in length, and press <Enter>. The password typed now will clear any previous password from the CMOS memory. You will be asked to confirm the password. Type the password again and press <Enter>.
  • Page 27: Agc Register Description

    AR-B5292 User‟s Manual AGC REGISTER DESCRIPTION This chapter describes the function‟s Register inside an AGC chip. To program the application‟s software, user must have the know-how of these Registers. 4.1 PCI Configuration Register 32 bit Register PCI CFG Register Offset...
  • Page 28 AR-B5292 User‟s Manual Command Register (04h : 05h) Software Software Value after Bit Field Description Readable Writable Reset I/O Space. Value of 1 allows device to respond to I/O space accesses. Memory Space. Value of 1 allows device to respond to memory space accesses Master Enable.
  • Page 29 AR-B5292 User‟s Manual Header Type Register (0Eh) Software Software Value after Bit Field Description Readable Writable Reset Configuration Layout Type. Specifies layout of bits 10h 22 : 16 through 3Fh in configuration space. Only one encoding 0 is defined. All other encodings are reserved.
  • Page 30 AR-B5292 User‟s Manual Base Address 2 Registers (18h) Software Software Value after Bit Field Description Readable Writable Reset 31 : 0 Not Supported Base Address 3 Registers (1Ch) Software Software Value after Bit Field Description Readable Writable Reset 31 : 0...
  • Page 31: Sram Memory Address Map

    AR-B5292 User‟s Manual Interrupt Pin Registers (3Dh) Software Software Value after Bit Field Description Readable Writable Reset Interrupt Pin Register indicates the interrupt pin that the device uses. The following values are decoded: 0 = No Interrupt Pin 1 = INTA#...
  • Page 32: I/O-Interface Address Map

    AR-B5292 User‟s Manual 4.3 I/O-Interface Address Map The following table shows the I/O Address map, including descriptions and their offset addresses relative to the “PCI Base Address1”. 32 bit Register Software Software I/O Offset Readabl Address Writable Reserved SRAM Bank...
  • Page 33 AR-B5292 User‟s Manual DIP Switch (04h) Software Software Value after Bit Field Description Readable Writable Reset DIP Switch1 0 / 1 DIP Switch2 0 / 1 DIP Switch3 0 / 1 DIP Switch4 0 / 1 DIP Switch5 0 / 1...
  • Page 34 AR-B5292 User‟s Manual Interrupt Source Register (0Ch & 0Dh) Software Software Value after Bit Field Description Readable Writable Reset Interrupt Status in Port A. 0 = No Interrupt, 1 = Interrupt active. To clear this bit, must be wrote any data to Port A as Input Interrupt Status in Port B.
  • Page 35 AR-B5292 User‟s Manual Port BCD Mode (10h) Software Software Value after Bit Field Description Readable Writable Reset Port A (8 bit). 0 = Input Mode, Output Mode disable Port B (8 bit). 0 = Input Mode, 1 = Output Mode Port C (8 bit).
  • Page 36 AR-B5292 User‟s Manual Port B Data (18h) Software Software Value after Bit Field Description Readable Writable Reset Yes (only in Bit 1 of Port B 0 / 1 Output Mode) Bit 2 of Port B Yes (only in 0 / 1...
  • Page 37 AR-B5292 User‟s Manual Port EFGH Mode (24h) Software Software Value after Bit Field Description Readable Writable Reset Port E (8 bit). 0 = Input Mode, 1 = Output Mode Port F (8 bit). 0 = Input Mode, 1 = Output Mode Port G (8 bit).
  • Page 38 AR-B5292 User‟s Manual Bit 4 of Port G Yes (only in 0 / 1 Output Mode) Bit 5 of Port G Yes (only in 0 / 1 Output Mode) Bit 6 of Port G Yes (only in 0 / 1...
  • Page 39 AR-B5292 User‟s Manual Port I Data (3Ch) Software Software Value after Bit Field Description Readable Writable Reset Yes (only in Bit 1 of Port I 0 / 1 Output Mode) Bit 2 of Port I Yes (only in 0 / 1...
  • Page 40 AR-B5292 User‟s Manual Port L Data (48h) Software Software Value after Bit Field Description Readable Writable Reset Yes (only in Bit 1 of Port L 0 / 1 Output Mode) Bit 2 of Port L Yes (only in 0 / 1...
  • Page 41: Agc Driver And Library

    5.1 Windows Driver and Libraries 5.1.1 Windows Driver Installation The AR-B5292 Gaming I/O Board is a kind of PCI Memory device. Under Windows 2000 and Windows XP, it would be automatically installed to the PCI Standard RAM Controller. Go to Windows screen and follow these steps: “control panel”...
  • Page 42 AR-B5292 User‟s Manual The following installation operates under Windows 2000. Procedures will be the same for Windows XP Professional. STEP1: Insert the driver CD into CD-ROM device and execute the “Sutup.exe” program. The InstallShield Wizard box will appear, click “Next” to continue.
  • Page 43 AR-B5292 User‟s Manual STEP5: The driver has completed the installation. Click “finished” exiting the Wizard. When the installation is complete, we suggest that you restart the system.  Test program You will see the test program screen below: Refer to source code for details of the method.
  • Page 44 PortNum BankNum TimerNum IntrEnValue IntrPortSrc TimerValue MemBaseAddr IoBaseAddr MemOffset byte PortType PortData MemValue char InputPortNum InputTimerNum W2K_RegisterCard Description This function is used to register the AR-B5292. AR-B5292 has to be registered by this function before other functions are called. 44/99...
  • Page 45 W2K_ReleaseCard(CardNum) Argument CardNum : The card number of AR-B5292 card initialized. W2K_GetIOBaseAddr Description This function is used to get the I/O base address of AR-B5292. Syntax C/C++ (Windows XP/2000) W2K_GetIOBaseAddr (CardNum, &IoBaseAddr) Argument CardNum: The card number of AR-B5292 card initialized.
  • Page 46 AR-B5292 User‟s Manual CardNum: The card number of AR-B5292 card initialized. IoBaseAddr: The I/O base address. W2K_SetPortType Description This function is used to set the port type as INPUT or OUTPUT. Syntax C/C++(Windows XP/2000) W2K_SetPortType (CardNum,PortNum,PortType) Argument CardNum: The card number of AR-B5292 card initialized.
  • Page 47 This function is used to write memory type. 11.2 Syntax C/C++ (Windows XP/2000) W2K_WriteMemType (CardNum, MemOffset, MemValue) 11.3 Argument CardNum: The card number of AR-B5292 card initialized. MemOffset: Memory offset. MemValue: Memory Value. W2K_WriteMemByte 13.1 Description This function is used to write memory byte.
  • Page 48 AR-B5292 User‟s Manual W2K_SetInterruptEnableReg (CardNum, IntrEnValue) 14.3 Argument CardNum: The card number of AR-B5292 card initialized. IntrEnValue: Interrupt enable value. W2K_GetInterruptEnableReg 15.1 Description This function is used to get interrupt enable register. 15.2 Syntax C/C++ (Windows XP/2000) W2K_GetInterruptEnableReg (CardNum, &IntrEnValue) 15.3 Argument...
  • Page 49 AR-B5292 User‟s Manual W2K_GetDipSwitch1 (CardNum, &DipSwitchValue) 19.3 Argument CardNum: The card number of AR-B5292 card initialized. DipSwitchValue: Dip Switch1 Value W2K_GetDipSwitch2 20.1 Description This function is used to get dip switch1 state value 20.2 Syntax C/C++ (Linux GCC) W2K_GetDipSwitch2 (CardNum, &DipSwitchValue) 20.3 Argument...
  • Page 50 AR-B5292 User‟s Manual while(TRUE) printf("\n"); printf(" ========== MENU =========\n"); printf(" (1) Set I/O Base Address \n"); printf(" (2) Set Memory Base Address \n"); printf(" (3) Set Port Type \n"); printf(" (4) Get Port \n"); printf(" (5) Set Port \n"); printf("...
  • Page 51 AR-B5292 User‟s Manual printf("\n"); break; case 4: printf(" Please Input Port Number : "); InputPortNum = getch(); InputPortNum = (char) toupper(InputPortNum); if((InputPortNum >= 'A') && (InputPortNum <= 'L')) printf("%c",InputPortNum); PortNum = InputPortNum - 'A'; PortData = 0; W2K_ReadPort(CardNum,PortNum,&PortData); printf(" ==> 0x%02x\n",PortData);...
  • Page 52 AR-B5292 User‟s Manual W2K_SetInterruptEnableReg(CardNum,IntrEnValue); break; case 10: W2K_GetInterruptEnableReg(CardNum,&IntrEnValue); printf(" Interrupt Enable => 0x%04x\n",IntrEnValue); break; case 11: W2K_GetInterruptSrc(CardNum,&IntrPortSrc); printf(" Interrupt Source => 0x%04x\n",IntrPortSrc); break; case 12: printf(" Please Input Interrupt Source : "); scanf("%x",&IntrPortSrc); W2K_ClearInterruptSrc(CardNum,IntrPortSrc); break; case 13: printf(" Please Timer Number : ");...
  • Page 53: Linux Driver And Libraries

    All driver and Libraries are packed in a RPM file and will be installed under folder /usr/local/acrosser. Install Driver and Libraries To install all packages for AR-B5292 supported by Linux, we can use RPM command like <example>RPM –ivh acrosser_arb5290_linux.rpm, and all files needed in Linux will be installed...
  • Page 54 AR-B5292 User‟s Manual 5.2.2 Linux AGC-API Library Programming Guide Naming Convention Data Types We have defined several data types which are used in the AR-5290 Cards library. We suggest that you use these data types in your application programs. The following table shows these data types and their ranges.
  • Page 55 AR-B5292 User‟s Manual LNX_RegisterCard Description This function is used to register the AR-B5292. Every AR-B5292 has to be registered by this function before other functions are called. Syntax C/C++ (Linux GCC) LNX_RegisterCard (&CardNum) Argument CardNum : The card number of AR-B5292 card initialized.
  • Page 56 Argument CardNum: The card number of AR-B5292 card initialized. MemBaseAddr: The memory base address of AR-B5292. LNX_SetIOBaseAddr Description This function is used to set the I/O base address of AR-B5292. Syntax C/C++ (Linux GCC) LNX_SetIOBaseAddr (CardNum , I/OBaseAddr); Argument CardNum: The card number of AR-B5292 card initialized.
  • Page 57 BankNum: Bank Number. LNX_WriteMemByte 12.1 Description This function is used to write memory type. 12.2 Syntax C/C++ (Linux GCC) LNX_WriteMemByte (CardNum, MemOffset, MemValue) 12.3 Argument CardNum: The card number of AR-B5292 card initialized. MemOffset: Memory offset. MemValue: Memory Value. 57/99...
  • Page 58 This function is used to read memory byte. 13.2 Syntax C/C++ (Linux GCC) LNX_ReadMemByte (CardNum, MemOffset, &MemValue) 13.3 Argument CardNum: The card number of AR-B5292 card initialized. MemOffset: Memory offset. MemValue: Memory value. LNX_SetInterruptEnableReg 14.1 Description This function is used to set interrupt enable register.
  • Page 59 This function is used to get timer register. 18.2 Syntax C/C++ (Linux GCC) LNX_GetTimerReg (CardNum, TimerNum, &TimerValue) 18.3 Argument CardNum: The card number of AR-B5292 card initialized. TimerNum: Timer Number. TimerValue: Timer Value. LNX_GetDipSwitch1 19.1 Description This function is used to get dip switch1 state value 19.2 Syntax...
  • Page 60 TimerNum; u16 TimerValue; u32 temp_u32; u16 temp_u16; i16 temp_i16; byte temp_byte; int temp_int; printf("AR-B5292 Gaming I/O Board Test Program (Fedora core 3)\n"); printf(" Open Card 1 ... "); LNX_RegisterCard(&CardNum); if(CardNum == 0xff) printf("[Not Found]\n"); return -1; LNX_GetIOBaseAddr(CardNum , &IoBaseAddr);...
  • Page 61 AR-B5292 User‟s Manual ");scanf("%x",&temp_u32);IoBaseAddr=temp_u32; LNX_SetIOBaseAddr(CardNum , IoBaseAddr); LNX_GetIOBaseAddr(CardNum , &IoBaseAddr); printf(" Now I/O Base Address is %04x\n",IoBaseAddr); #endif break; case 2: #ifndef SALF_VERSION printf(" Please Input Base Address : ");scanf("%x",&temp_u32);MemBaseAddr=temp_u32; LNX_SetIOBaseAddr(CardNum , MemBaseAddr); LNX_GetIOBaseAddr(CardNum , &MemBaseAddr); printf(" Now Memory Base Address is %04x\n",MemBaseAddr);...
  • Page 62 AR-B5292 User‟s Manual case 6: printf(" Please Input Memory Bank [0-63]: ");scanf("%d",&temp_int);BankNum=temp_int; LNX_SwitchMemBank(CardNum,BankNum); break; case 7: printf(" Please Input Memory Address [0x00-0x1fff]: 0x");scanf("%x",&temp_u32);MemOffset = temp_u32; printf(" Please Input Memory Byte Data: 0x");scanf("%x",&temp_byte);MemValue=temp_byte; LNX_WriteMemByte(CardNum,MemOffset,MemValue); break; case 8: printf(" Please Input Memory Address [0x00-0x1fff]: 0x");scanf("%x",&temp_u32);MemOffset = temp_u32;...
  • Page 63 AR-B5292 User‟s Manual printf("\n"); break; MAIN_END: LNX_ReleaseCard(CardNum); return 0; 63/99...
  • Page 64: Interrupt Call Back Function Architecture

    AR-B5292 User‟s Manual Interrupt Call Back Function Architecture The interrupt handle of AR-B5292 is implemented by the call back function architecture. User can write their own call back function and registered them through API. When a interrupt happended, AR-B5292 will notify the user by call back function which they registered before.
  • Page 65 AR-B5292 User‟s Manual agc_callback_t ioint_callback; agc_callback_t timerint_callback; }_AGC_CallBack_FunTab_t;  Below is the API used for user to register their callback function table to driver. void LNX_SetCallbackFunTable(_AGC_CallBack_FunTab_t *funtab); For example. 1. At initiation state, user register their callback function table by calling API SetCallbackFunTable void IOIST(AGC_IOINT_Context_t *context){…}...
  • Page 66: Aga Library

    But Protect-U‟s special features make an attack to those points much more difficult to succeed. The “HARDWARE” is a silicon chip embedded in AR-B5292. It holds ID code in the form of manufacture code and serial number. This ID information is protected so that it is not readable except through the “ENCRYPTED TRANSMISSION”.
  • Page 67: Data Sets

    B, C, D, E and F are valid hexadecimal values. Protect-U count increases by one count automatically each time we read the Protect-U. For the software to be able to verify that the AR-B5292 is the correct one, it is important for user to understand these three sets of code.
  • Page 68: Using Aga Functions

     Real time clock: There is a built-in real time clock on the AR-B5292. You can use this RTC data for your own purpose in your application software. The RTC data is also used by intrusion logger for time stamp. This RTC contains data of year, month, date, hour, minute and second. The API provides functions to set and read the RTC data.
  • Page 69: Aga-Api Library Introduction

    8-bit data from digital input Port A and the date and time that event occurred. You can get all of these data by calling AR-B5292‟s API “Lib_Get_Log”. The API will return all 10 sets of log for your analysis.
  • Page 70 To read a byte of data or any response from iButton, we can use API Lib_Read_iBtn  Read EEPROM AR-B5292 comes with a 2-wrie serial EEPROM and a size capacity of 2k bits for storing or backing up user data. To read data from EEPROM, we can use API Lib_ReadEEPROM ...
  • Page 71: Aga-Api Library

    AR-B5292 User‟s Manual 6.5 AGA-API Library This chapter describes the necessary software API and library for you to control AR-B5292‟s Protect-U, Intrusion Logger and Real Time Clock in Windows and Linux operation systems. 6.5.1 Windows Library 6.5.1.1 File List Windows Library for Protect-U, Intrusion Logger and Real Time Clock consists of files as follows: ...
  • Page 72 Before calling any api off the AGA-API Library, we must first call this API Lib_InitLib to initiate AGA-API Library and allocate resources. Note: AR-B5292 use the com port address 0x2F8 to connect to the AGA Input parameters : [in] usCOM: This is the serial port number used for communicating with AR-B5292 in your computer.
  • Page 73 *szSer_Num,unsigned short *usPTU_Counter) Description: Your application software can set the data (Manufacture code and Serial number) into Protect-U by calling the AR-B5292 Protect-U Library API “Lib_Set_PTU”, and this API will return the count value in Protect-U. Input parameters : [in] szManu_Code: This is the 8-character hexadecimal “Manufacture code”...
  • Page 74 8-bit data from digital input Port A and the date and time that event occurred. You can get all of these data by calling AR-B5292‟s API “Lib_Get_Log”. The API will return all 10 sets of log for your analysis.
  • Page 75 LIB_RTC_TYPE_SETBYSYS. [in] pTm: This is a pointer for the structure which you have stored the time value that you want to set for the RTC on AR-B5292. If the previous argument us_Type equals to LIB_RTC_TYPE_SETBYSYS, then this can be NULL. Please refer to <time.h> for more details about the structure.
  • Page 76 AR-B5292 User‟s Manual unsigned long __stdcall Lib_Get_RNG(unsigned char *szBuf) Description: AR-B5292 has a 16-bit hardware real random number generator. We can get this 16-bit RNG by calling API Lib_Get_RNG Input Parameters: [in] szBuf: This is a pointer assigned by you. This pointer should point to the starting point of the buffer where you want the API to store the returned log.
  • Page 77 AR-B5292 User‟s Manual Description: To clear Battery Low Log1 we can call the API Lib_Cls_BattLog1 for clearing log. Input Parameters: NONE Return Value: ERROR MESSAGE: Please refer to the Lib_Pic.h for the meaning of all possible returned values.  Get Battery Low Log2...
  • Page 78 __stdcall Lib_WriteEEPROM(unsigned int index, unsigned char *pbData, unsigned int uiSize) Description: AR-B5292 comes with a 2-wrie serial EEPROM and a size capacity of 2k bits for storing or backing up user data. To write data to EEPROM, we can use this API.
  • Page 79 AR-B5292 User‟s Manual bits for storing or backing up user data. To read data from EEPROM, we can use this API. Input parameter: [in] index: The offset of position we want to write data to Return Value: ERROR MESSAGE: Please refer to the Lib_Pic.h for the meanings of all possible returned values.
  • Page 80 Before calling any api off the AGA-API Library, we must first call this API Lib_InitLib to initiate AGA-API Library and allocate resources. Note: AR-B5292 use the com port address 0x2F8 to connect to the AGA Input parameters : [in] usCOM: This is the serial port number used for communicating with AR-B5292 in your computer.
  • Page 81 AR-B5292 User‟s Manual ERROR MESSAGE: Please refer to the Lib_Pic.h for the meaning of all possible returned values. [out] usPTU_Counter: This 2-character hexadecimal value is decrypted from the encrypted data returned from the Protect-U chip. You should save this value for the next validation of Protect-U.
  • Page 82 AR-B5292 User‟s Manual time that event occurred. You can get all of these data by calling AR-B5292‟s API “Lib_Get_IntrLog ”. The API will return all of 10 sets of log for your analysis. Note: Before you reset the intrusion logger, the log returned from the intrusion logger will be meaningless and uncertain data.
  • Page 83 LIB_RTC_TYPE_SETBYSYS. [in] pTm: This is a pointer for the structure which you have stored the time value that you want to set for the RTC on AR-B5292. If the previous argument us_Type equals to LIB_RTC_TYPE_SETBYSYS, then this can be NULL. Please refer to <time.h> for more details about the structure.
  • Page 84 AR-B5292 User‟s Manual The Battery Low Log is a 7-byte length data which logs the battery low event to avoid having an empty battery monitor the instruction log. We can get Battery Low Log by calling API Lib_Get_BattLog Input Parameters: [in] szLogBuf: This is a pointer assigned by you.
  • Page 85 Lib_WriteEEPROM(unsigned int index, unsigned char *pbData, unsigned int uiSize) Description: AR-B5292 comes with a 2-wrie serial EEPROM and a size capacity of 2k bits for storing or backing up user data. To write data to EEPROM, we can use this API.
  • Page 86 ERROR MESSAGE: Please refer to the Lib_Pic.h for the meanings of all possible returned values. 6.5.3 The usage of Linux Library AR-B5292 provides two types of Linux library. One is static library, the other is Dynamically Loaded (DL) Libraries. ...
  • Page 87 AR-B5292 User‟s Manual FunctionLib = dlopen("./lib_pic.so",RTLD_LAZY); if(!FunctionLib) error = dlerror(); printf("open libptu error-%s- \n", error); exit(4); // _Lib_Set_PTU test fp = dlsym(FunctionLib, "_Lib_Set_PTU"); if(!fp) error = dlerror(); printf("search _Lib_Set_PTU error-%s- \n", error); exit(4); (*fp)(1,"12345678","ABCD",&count); //_Lib_Set_PTU test fp = dlsym(FunctionLib, "_Lib_Set_PTU");...
  • Page 88: Error Messages

    AR-B5292 User‟s Manual 6.6 Error Messages This section describes the error message structure used in AR-B5292‟s API. They are defined in “Lib_Pic.h” file. If the API is executed without any error, the error message returned from the API will always equals ERROR_API_SUCC.
  • Page 89: Electrical Characteristics

    C.C talk Communication pin low level Threshold -0.3 RS232 Maximum Working baud rate 115.2 Kbps Maximum Working baud rate 19.2 Kbps Blight Backlight operating voltage 11.4 12.6 Total power consumption in AR-B5292 without External device T.P.C @ Pentium –M 2.0Ghz 89/99...
  • Page 90 AR-B5292 User‟s Manual 72 Pins Golden Fungers Component Side Function Port/Bit SPR_L + Stereo Output L- (Differential with L-) Button1 Button2 Button3 Button4 Button5 Button6 Button7 Button8 Button9 Button10 Dissolve Key-Lock Button11 Door_SW1, share with AGA Intrusion0 Coin-In_A Coin in signal port A...
  • Page 91 AR-B5292 User‟s Manual O.C. Lamp3 O.C. Lamp4 O.C. Lamp5 O.C. Lamp6 Solder Side Function Port/Bit Audio GND Audio GND SPEAKER RIGHT+ Door SW2, share with AGA Intrusion1 Door SW3, share with AGA Intrusion2 Door SW4, share with AGA Intrusion3 Door SW5, share with AGA Intrusion4...
  • Page 92 AR-B5292 User‟s Manual O.C. Lamp14 O.C. Lamp15 O.C. Lamp16 O.C. Lamp7 O.C. Lamp8 O.C. Lamp9 O.C. Lamp10 O.C. Lamp11 O.C. Lamp12 20-pin Golden Finger Component Side Function Port/Bit +5V Power Input +5V Power Input +12V Power Input +12V Power Input O.C.
  • Page 93 AR-B5292 User‟s Manual JAMMA Golden Finger Component Side Function Port/Bit Power +5V Power +5V Power -5V (NC) Power +12V Reserved PCB Key O.C. Coin-in Meter O.C. Coin-out Meter Speaker Left+ Speaker Right+ Dissolve Key-Lock Coin-in Signal A Button1 Button2 Button3...
  • Page 94 AR-B5292 User‟s Manual Solder Side Function Port/Bit Power +5V Power +5V Power -5V (NC) Power +12V Reserved PCB Key O.C. Key-in Meter O.C. Key-out Meter Audio GND Audio GND Service Key-Lock Setup Key-Lock Coin-in Signal B Button9 Button10 Button11 Button12...
  • Page 95 AR-B5292 User‟s Manual AGC Port assignment 水果 Port/Bit JAMMA Remark Door SW1 Door SW2 Door SW3 Door SW4 Door SW5 Button 1 Button 1 Button 2 Button 2 Button 3 Button 3 Button 4 Button 4 Button 5 Button 5...
  • Page 96 AR-B5292 User‟s Manual Coin-In Signal B Coin-in Signal B Bill-In Hopper Sensor Hopper Sensor A O.C. Lamp1 O.C. Lamp2 O.C. Lamp3 O.C. Lamp4 O.C. Lamp5 O.C. Lamp6 O.C. Lamp7 O.C. Lamp8 O.C. Lamp9 O.C. Lamp10 O.C. Lamp11 O.C. Lamp12 O.C.
  • Page 97 AR-B5292 User‟s Manual O.C. USB Green Light DIP Switch2 S0 DIP Switch2 S1 DIP Switch2 S2 DIP Switch2 S3 DIP Switch2 S4 DIP Switch2 S5 DIP Switch2 S6 DIP Switch2 S7 Spare I/O Spare I/O Spare I/O Spare I/O Spare I/O...
  • Page 98 AR-B5292 User‟s Manual Notes I.I is Open Drain with series 150Ω as Structure Diagram PCB Internal Circuit Suggestion Application Circuit Note1: Note1 150 Ohm if VDD is 5V 100K 1K Ohm if VDD is 12V 150 Ohm Audio Output is maximum 12V peak for 8Ω speaker.
  • Page 99 AR-B5292 User‟s Manual DB25 IO Structure Diagram PCB Internal Circuit Typical Application Circuit 10KΩ TTL Tolerance AGC_IO AGC_direction Notice for Rechargeable battery Please charge the battery 24hrs firstly before using. 99/99...

Table of Contents