Home

- Acrosser

image

Contents

1. IUE ed 51 5 3 API List and Descriptions 54 5 65 ECROSSER AR B6002 User Manual INIRODUCTION AR V6002FL series with Intel Atom D425 D525 processor is multi function In Vehicle computer which is suitable for using in all kind of applications Besides basic I O ports like VGA USB COM LAN and GPIO AR V6002FL has complete wireless solutions for selection embedded CAN BUS function to allow microcontrollers and devices to communicate with each other in vehicle In addition AR V6002FL has intelligent power management function with software utility to monitor power status and control power sequence and also compliant with most industry standards for in vehicle usage including CE FCC and E Mark 13 ECROSSER AR B6002 User Manual 1 1 Specifications B IntelR Atom 0525 0425 1 66GHz B 1x SO DIMM supports DDRIII up to 4GB Memory DDR3 data transfer rates of 800 MT s B 1xVGA B 6x USB2 0 2xSATA B 1xCFII 5 5 232 B 1x GbE Realtek RTL8111D B ixLline out 1 x MIC Canbus Implementation ISO 11898 8 bit GPIO with 4in 4out Optional WiFi Bluetooth GPS 3 5G solution for selection Intelligent power management support standard 12V 24V car battery ECROSSER 1 2 Package Contents Check if the following items are included in the pa
2. 6 Id 7 1 2 Package Contents FUA 8 1 3 M 9 TTE 10 2 1 Locations of Connector and Jumper Setting 10 2 2 Connector and Jumper Setting Table 13 BIOS Seti oT iacu iri DUI EUR eee ene ener 23 URN CES M A 24 3 2 Advanced Chipset Setup 26 22 v 28 34 POP PCOS 29 3 9 SetU 31 36 PFC Heath ee eee 32 pe 33 T 34 4 Watchdog GPIO and Bypas Programming 36 4 1 Watchdog Programming 2 0 4 4 4 4 112111 11 1 36 4 2 GPIO PEO Gr am milit 40 ECROSSER AR B6002 User Manual 5 Software Installation and Programming Guide 45 in EE IM IEEE EPUM MEME NN 45 2 2
3. aaa aeaea gotoxy 20 11 cprinti zi aj zm gotoxy 20 12 zzi aaaea gotoxy 20 13 zi a zi gotoxy 20 14 zi a a aaa j 44 ECROSSER AR B6002 User Manual SOFTWARE INSTALLATION AND a PROGRAMMING GUIDE 5 1 Introduction 5 1 1 CAN bus Overview The CAN bus APIs provide interfaces to CAN bus subsystem By invoking these APIs programmers can implement applications which have the functions listed below Set the BAUD rate send the CAN packages over the CAN bus 3 the CAN packages via the CAN bus hardware interface N In this CAN bus API package we provides 1 Linux platform Linux driver module of CAN bus subsystem and the driver load unload scripts On Windows platform Device driver and install program of CAN bus subsystem 2 API header file API libraries in static library format and shared library format 3 CAN bus test utility and its source code Installation Procedure of CAN Bus Driver On Linux platform Change to the root user account In the driver directory execute the script modld Execute Ismod Make sure arb104d is in the module list If the driver is no longer needed execute the script modul to unload the driver IU 45 ECROSSER AR B6002 User Manual On Windows platform 1 In the
4. These fields allow the system to search for an OS from LAN These fields set the Boot Priority for each Hard Disk Enabled LAN Boot Select Disabled Hard Disk Boot Priority N A 33 5 lt AR B6002 User Manual 3 8 Exit Setup This option is used to exit the BIOS main menu and change password Save amp Ex1t Setup Note The control keys are listed at the bottom of the menu If you need any help with the item fields you can press the F1 key and the relevant information will be displayed Press Y to store the selections made in the menus in CMOS a special section of the memory that stays on after you turn your system off The next time you boot your computer the BIOS configures your system according to the setup selections stored in CMOS After saving the values the system will restart Press Enter on this item to confirm Save amp Exit Setup Save to CMOS and EXIT Y N Y 34 ECROSSER Load Optimized Defaults Exit Without Saving Set Password When you press Enter on this item you will see a confirmation dialog box with a message like this Load Optimized Defaults Y N N Press Enter on this item to confirm Quit without saving Y N Y Press Enter on this item to confirm ENTER PASSWORD 35 AR B6002 User Manual Press Y to load the default values that are factory set for optimal performance system op
5. Upper Port 4 PIC programming connector Lower Port 3 d a bi e 19 CN20 Setting Voltage level of Battery 20 VGA1 D SUB 15 female connector for VGA output D SUB 15 female connector for VGA output 1 2 24V STATUS SETTING 12V Default B ES 21 SW1 DIP switch for power mode select 22 COM1 D SUB 9P Male connector x 2 Note 1 Note 2 PIN DEFINE PIN DEFINE DCD SIN DT DT SOUT DTR 422R 422R ow mpm e om 15 ECROSSER AR B6002 User Manual 25 PWR1 Power Input Terminal Block 26 FUSE1 Fuse connector Connector m uw Im 27 CN23 SELECT for COM1 2 28 JP8 JP11 RS 232 RS 422 RS 485 CN24 HI SELECT for 4 Selection for COM1 2 Note 2 IE 1 2 COM1 COM3 Default Default 2 4 mE RS 422 4 6 IE Default 3 5 RS 485 m 29 CN25 RI SELECT for COM5 6 Reserve 30 COM5 RS232 signal connector for port 5 Reserve STATUS SETTING RIZ 1 2 5 Default DCD 5 DSR 5 mas e crews RI 5 6 COM6 DTR 5 mD RI 5 Default ee 31 JP5 JP6 5 485 Termination 120 ohm 32 JP7 JP10 RS 232 RS 422 RS 485 Reserve Selection for COM1 2 Note 2 STATUS SETTING ue 5 232 2 Default open Default 16 ECROSSER AR B6002 User Manual 33 JP9 JP12 RS 232 RS 422 RS 485 34 U8 SPI BI
6. Description This function sets up the speed Baud rate of sending and receiving CAN packages Parameters The parameter baud could be the unit is Kbps 10 20 50 100 125 250 500 800 1000 55 ECROSSER AR B6002 User Manual The default speed is 125 Kbps Return Value This function returns ERROR 5 if it set the Baud rate successfully this function fails to open the CAN device node it returns ERROR CAN OPEN FAIL If the inputted Baud rate is not any one of the Baud rate listed above it will return ERRMSG ERROR API CANCONFIG ERROR GEN INPUT DATA If it has any other problem with setting the Baud rate it returns ERROR GEN DEVICE FAIL 56 ECROSSER AR B6002 User Manual 5 3 2 GPIO and Watchdog GPIO 1 Syntax 132 getInChLevel i32 channel Description Get the value of GPIO Input and put the value at val Parameters The parameter channel indicates the GPIO Input pins to show Users can use the macros GPIO GPI1 GPI2 GPIS to indicate the GPIO Input channel For example getInChLevel GPI2 amp val Indicate the GPIO Input channel 2 getInChLevel GPIO GPI3 amp val Indicate the GPIO Input channel 0 and channel 3 1 The parameter is an unsigned character pointer The function puts the values of the indicated GPIO channels at the memory pointed by val The bit O of shows the value of GPIO Input channel 0 The bit 1 of val shows the
7. DIAR 8600205 10 ECROSSER AR B6002 User Manual o CNG CN18 ICN23 CN24 2 Ox Reserve CN13 JP7 JP10 9 Reserve CN10 Reserve CN17 LED1 28 20 WH1 06000000060 0006000200666 11 ECROSSER 2 1 2 Locations Bottom Side AR B6002 User Manual 12 ECROSSER AR B6002 User Manual 2 2 Connector and Jumper Setting Table 1 CN6 BLUETOOTH connector 2 CN8 GPS connector 3 SATA PWHR1 SATA Power connector 4 SATA PWR2 SATA Power connector 5 CN2 Pin Header for clear CMOS 6 CN13 SIM Card Slot 8 SIM Card Slot for 3G Module KR 000000 7 BH1 CMOS battery holder 8 MINIPCIE1 Mini PCI E connector for 3 5G module CMOS battery holder MINI PCI E connector 13 ECROSSER AR B6002 User Manual 9 CN9 Internal USB2 0 connector Reserve 10 CN10 Internal USB2 0 connector Reserve 11 MINIPCIE2 Mini PCI E connector 12 CN17 FPGA Programmable HEADER MINI PCI E connector FPGA programmable header RJ45 connector for Gigabit Ethernet port 1 Upper Port 2 Lower Port 1 14 ECROSSER AR B6002 User Manual 17 CN7 USB connector 18 CN28 PIC Programming connector
8. below Y Voltage with 5 tolerance more than 10 seconds the Power smart function will shut down the motherboard following the standard shut down procedure If the input voltage recovers in 10 seconds over Y Voltage with 596 tolerance again the Power smart function will continue to run Figure 4 if this happens ignition shall be off and on again Mode 2 3 4 or press the remote switch Mode 5 6 7 if you want to turn on system again 2 ECROSSER AR B6002 User Manual Important Please make sure the CN20 jumper is set to the right setting which meet your vehicle power system The power subsystem uses this setting to identify the voltage of your vehicle power system 11 STATUS SETTING 3 12 24V system 8 23 2 12V system Default For 12V car battery For 24V car battery X value Minimum Start up voltage Y value Auto shut down voltage Note2 2 to choose RS 232 RS 485 RS 422 by Jump setting B JP7 JP8 JP9 setting to B JP10 JP11 JP12 setting to COM2 COMI Type Selection COM2 Type Selection 1 3 1 3 Re 234 l 2 111 22 ECROSSER AR B6002 User Manual el BIOS SETTING This chapter describes the BIOS menu displays and explains how to perform common tasks needed to get the system up and running It also gives detailed explanation of the elements found in each of the BIOS menus The following topics are covered Main Setup Advanced Chipset Setup PnP PCI Setu
9. can press the F1 key and the relevant information will be displayed Option Description Onboard Serial Port 1 Serial Port 1 SF8 IRQ4 Onboard Serial Port 2 Serial Port 2 2F8 IRQS3 Onboard Serial Port 3 Serial Port 3 SE8 IRQ11 Onboard Serial Port 4 Serial Port 4 2E8 IRQ10 Onboard Serial Port 5 Serial Port 5 4F8 IRQ11 Select an address and the corresponding interrupt for each serial port Select your system contains a Universal Serial Bus USB controller and you have USB peripherals USB Device Setting The integrated peripheral controller On chip IDE DEVICE contains an IDE interface with support for two IDE channels 3l 5 lt AR B6002 User Manual 3 6 PC Health Setup This section shows the parameters in determining the PC Health Status These parameters include temperatures fan speeds and voltages 32 5 lt AR B6002 User Manual 3 7 Boot Setup This option allows user to select sequence priority of boot device s and Boot from LAN First Boot Device Note The control keys are listed at the bottom of the menu If you need any help with the item fields you can press the lt F1 gt key and the relevant information will be displayed Hard Disk CDROM USB FDD USB CDROM LAN Disabled The BIOS attempts to load the operating system from the devices in the selected sequence First Second Third Boot Device Other Boot Device
10. mode at which the power subsystem is operating u8 majorVersion Major version number of the firmware u8 minorVersion Minor version number of the firmware Piclnfo Piclnfo getPicFwVer amp piclnfo printf 9ec 9 ec piclnfo majorVersion piclnfo minor Version Return Value If the version information is returned successfully the function returns 0 If any error it returns 1 12 Syntax i32 getPicMode u8 mode Description The function gets the mode number at which the Power Subsystem is operating 63 ECROSSER AR B6002 User Manual Parameters The parameter is a pointer which points to a variable of type unsigned char The returned mode number is put at the memory which is pointed by parameter mode Return Value If the mode information is returned successfully the function returns 0 If any error it returns 1 13 Syntax 132 setPicDefault void Description The function restores the SoftOffDelay and HardOffDelay to the default value Parameters None Return Value If this function works successfully the function will return 0 If any error it will return 1 64 ECROSSER AR B6002 User Manual 5 4 Appendix Users have to modify the boot loader configuration to support COM6 Take the grub configuration file as an example Add 8250 nr noirqdebug at the setting of kernel Here XX represents the number of COM ports the system will support Because the
11. or minutes outportb IO Port Address 1 Format Default is second outportb IO Port Address 0xF6 Set Watchdog Timer Value outportb IO Port Address 1 Time 0x00 to disable max OxFF while 1 outportb IO Port Address OxF6 Read Watchdog Timer Value Timezinportb IO Port Address 1 gotoxy 20 10 if Time_Format m Time gt gt gt After d Minutes will reset the system lt lt lt Time if Time Format s Time Format S cprintf gt gt gt After d Second will reset the system lt lt lt Time j return 0 39 ECROSSER AR B6002 User Manual 4 2 GPIO Programming This section describes the usage of GPIOs The electrical characteristics of GPIOs as following table To quickly understand the GPIO programming under Linux we also provide a sample application source code in product CD naming gpio c It can be used to control GPIO pin described above and also LED Rev Date Name Description include lt conio h gt include lt stdio h gt 40 ECROSSER AR B6002 User Manual include lt dos h gt void Show Help void Show Fail void Show Pass int main int argc cprintf lt gt gotoxy 1 2 cprintf W83627HF GPIO Test Utility s Acrosser Technology Co Ltd cprintf lt gt cprintf lt gt cprintf lt gt char Model Name AR B6002 char Version v1 0 unsigned char lO_PORT_BASE 0x
12. take effect at next system boot From the power subsystem get the stored setting of Power On mode Get or set the time of Hard Off delay in seconds or in minutes Get or set the time of Soft Off delay in seconds or in minutes Get the battery voltage Get the version number of the firmware of the Power Subsystem Set the Hard Off delay and Soft Off delay to the default value po dr e The power subsystem connects to the main system the COMO The Linux s default supported COM interfaces are COM1 COM4 The Power Subsystem APIs implicitly communicate with power subsystem through COM6 Users must take extra steps to configure Linux kernel in order to support COM6 Please refer to Appendix A for more information Users don t need extraordinary setup on Windows platform to support COMG In this Power Subsystem package we provide 1 The APIs to access power subsystem and the source code of the APIs 2 The utility and source code to monitor and set up power modes ignition status and power off time Linux platform the Makefile to create API libraries and utility 50 ECROSSER AR B6002 User Manual 5 2 File Descriptions 5 2 1 CAN Bus On Linux platform 1 LIB h The header file of the API and macro definitions errcode h The macro definitions of returned error code libAGC_LIB a The API library in static library format libAGC_LIB so The API library in shared library format main c The s
13. 132 setPowerOnMode u8 powerOnMode Description The function sets up the source of the boot up signal of the system There are two choices boot from the Ignition or boot from the Remote Switch Parameters PowerOnMode 0xa5 boot up by the Ignition PowerOnMode 0x5a boot up by the Remote Switch There are macros of Ignition mode and Remote Switch mode in pwr acce h Linux and AR B6002 h Windows Return Value the function sets power on mode successfully it will return 0 If any error the function returns 1 61 ECROSSER AR B6002 User Manual 7 Syntax i32 getSoftOffDelay u32 Time Description The Soft Off Delay is the interval between that the system receives a power off signal and that the system generates a power off signal This function gets the interval Parameters The parameter is a pointer which points to an unsigned long variable The returned value is stored at this variable The unit of the returned value is in seconds Return Value If the delay time is returned successfully the function returns 0 If any error it returns 1 8 Syntax i32 getHardOffDelay u32 Time Description The Hard Off Delay is the interval between that the system is off and that the power 5VSB is off This function gets the interval Parameters The parameter is a pointer which points to an unsigned long variable The returned value is stored at this variable The unit of the returned value is in seconds Return
14. 2E DATA PORT IO PORT BASE 1 unsigned char data int result 0 if argc gt 1 Show Help retum 1 j clrscr textcolor WHITE gotoxy 1 1 gotoxy 1 3 gotoxy 1 4 gotoxy 1 5 cprintf Model Name gotoxy 1 6 cprintf SIO IO Base gotoxy 1 7 Show Got Parameter Informat 41 ECROSSER AR B6002 User Manual textcolor LIGHTGRAY gotoxy 18 5 cprintf s Model_ Name gotoxy 18 6 cprintf X IO_ PORT BASE Enter W83627HF Config outportb IO_ PORT 5 0 87 outportb IO_ PORT 5 0 87 Set Multi function Pins to GPIO outportb lO PORT BASE 0x2C outportb IO PORT BASE 1 inportb lO PORT 5 1 amp Ox1F Select GPIO Port device outportb IO PORT BASE 0x07 outportb lO PORT BASE 41 0x09 Set GPIO Port Active GPIO3 outportb IO PORT BASE 0x30 outportb IO PORT BASE 41 0x02 Set W83627HF GPIO30 33 to Output GPIO34 GPIO37 to Input outportb IlO PORT BASE 0xF0 outportb lO PORT BASE 41 0xF0 inversion data to correct because the protect circuit outportb IO PORT BASE OxF2 outportb lO PORT BASE 41 0xF0 Set W83627HF GPIOS30 33 to 0x05 outportb IlO PORT BASE OxF1 outportb IlO PORT BASE 1 0x05 Read W83627HF GPIO34 37 Status if not 0x50 error delay 100 data inportb IlO PORT BASE 1 amp 0xFO if data 0x50 result 1 Set W83627HF GPIO30 33 to Ox0A 42 ECROSSER AR B6002 User Manual out
15. ECROSSER AR B6002 User Manual AR B6002 Board Fan less with Intel ATOM Pineview ICH8M User Manual Manual Rev 1 1 ECROSSER AR B6002 User Manual Revision 1 1 ECROSSER AR B6002 User Manual Copyright 201 1 All Rights Reserved Manual s first edition For the purpose of improving reliability design and function the information in this document is subject to change without prior notice and does not represent a commitment on the part of the manufacturer In no event will the manufacturer be liable for direct indirect special incidental or consequential damages arising out of the use or inability to use the product or documentation even If advised of the possibility of such damages This document contains proprietary information protected by copyright All rights are reserved No part of this Manual may be reproduced by any mechanical electronic or other means in any form without prior written permission of the manufacturer Trademarks AR B6002 is a registered trademarks of Acrosser IBM PC is a registered trademark of the 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 ECROSSER AR B6002 User Manual Table of Contents SB
16. OS Socket Selection for COM1 2 Note 2 RS 232 1 3 Default 2 4 SPI BIOS Socket RS 422 4 6 DIMM1 DDR II SODIMM Socket DDR 3 SODIMM Socket SATA device connector 1 SATA device connector 2 3 3V CF card only and UDMA mode supported 17 ECROSSER AR B6002 User Manual Note1 Power smart function ModeO ATX function Mode1 Auto PWRBTN function Mode2 Mode3 Mode4 Smart ATX 5 Mode6 Mode7 Smart ATX power on by trigger Remote SW Others modes are reserved for test only Definition 1 Soft off cycle A period when received power off signal to generate a off signal A 500mS pulse High Low High or Low High Low depends on SIO configuration to mother board s Power Button Pin 2 Hard Off cycle A period when system off 55 to stand by removed G3 In another word the A period of 5VSB on to off when system already off Notes S5 and G3 is follow by ACPI Mode description The main power in is controlled by the switch on chassis Maximum 16 Modes adjusted by 4 switches Mode 8 to mode 15 are reserved for future use Mode 0 ATX mode A 5V Standby is always B Input voltage is not monitored C Power on off is controlled by remote switch Mode 1 Auto PWRBTN mode A Power output immediately after input is present B Power output is off immediately when input power to off Smart Mode Mode 2 to Mode 7 Mode 2 See Figure 1 A Power on is controlled by ignition re
17. Value If the delay time is returned successfully the function returns 0 If any error it returns 1 9 Syntax 132 getPowerOnMode u8 powerOnMode Description The function gets the setting of power on mode There are two modes boot from the Ignition or boot from the Remote Switch Parameters The parameter is a pointer which points to an unsigned character The returned code is stored at this memory There are two power on modes PowerOnMode 0xa5 boot up by the Ignition PowerOnMode 0x5a boot up by the Remote Switch Return Value If the power on mode is returned successfully the function returns 0 If any error it returns 1 10 Syntax 62 ECROSSER AR B6002 User Manual i32 getBattVolt float volt Description The function gets the voltage reading of the battery Parameters The parameter volt is a pointer which points to an variable of type float The unit of the returned value is voltage Return Value If the reading of voltage is returned successfully the function returns 0 If any error it returns 1 11 Syntax 132 getPicFwVer struct Piclnfo ver Description The function gets version information of Power Subsystem firmware Parameters The parameter is a pointer which points to Piclnfo structure which consists of 9 unsigned characters Here is the definition of structure Piclnfo type struct 3 The type of the power subsystem u8 mode 4 The
18. anAry 30 if result ERROR CANSENDMESSAGES result ERROR CAN OPEN FAIL forintf stderr Send CAN package error n 54 ECROSSER AR B6002 User Manual 2 Syntax unsigned int getCanMessages canmsg t buffer u8 count Description This function receives CAN packages from the CAN bus subsystem Parameters This function stores received CAN packages sequentially at an array of type canmsg The number of packages to receive is indicated by the parameter count Before finishing receiving count packages the process which invokes this function will be temporarily blocked Block I O if there is no incoming CAN package Return Value this function receives the packages successfully it returns ERROR 5 If this function fails to open the CAN device node it returns ERROR CAN OPEN FAIL If this function has any problem with receiving the CAN packages it returns ERROR API CANGETMESSAGES Here is an example If the array of type canmsg t has been declared and allocated The code listed below will receive 30 CAN packages from the CAN bus subsystem and stores the packages in the canAry unsigned int result 0 canmsg t canAry 30 result getCanMessages canAry 30 if result ERROR CANGETMESSAGES result ERROR CAN OPEN FAIL fprintf stderr Send CAN package 3 Syntax unsigned int configCan i32 baud
19. ckage Quick Manual e AR B6002 e 1x Software Utility CD AR B6002 User Manual ECROSSER AR B6002 User Manual 1 3 Block Diagram 300 lav IN comm CK505 VR11 Finaview O linawviaw HM ADri211A POWER 2 LAN CHIE 1 pu DOE V RIS JPI 2 16 8MIA 2 0 mr 3MIA ocr cam 1 0 AUDIO LINE xd TJE UJE CCH LORI mE DEI miim LP 4 UART TITT iT y Fear 110 PCI I Tirar Hardwara 1 COM FORI T DENREI TIT CTI ETI TA d mmm Ek resins Fin Eh 1 smial pia dimly lint am ra mid TIE mL xem L r rumes meer ECROSSER AR B6002 User Manual H W INFORMATION This chapter describes the installation of AR B6050 At first it shows the Function diagram and the layout of AR B6050 It then describes the unpacking information which you should read carefully as well as the jumper switch settings for the AR B6050 configuration 2 1 Locations of Connector and Jumper Setting 2 1 1 Locations Top side LJAR B amp 0D2D4
20. def unsigned char BYTE typedef unsigned short int WORD typedef unsigned long int DWORD 37 ECROSSER AR B6002 User Manual void Show Title clrscr printf WatchDog Test for W83627HG n printi 1 WDT EXE 10 s gt 10 seconds to reset n printf 2 WDT EXE 20 m gt 20 minutes to reset n int main int argc char char Time Format BYTE IO Port Address Ox2E BYTE 10 Default is 10 BYTE Format 0x00 Default is 0x00 Seconds if argc 3 Show return 1 clrscr textcolor YELLOW BLINK Timez atoi argv 1 Time Format argv 2 O if Time_Format m Time Format 0x08 Minutes if Time Format s Time Format S Format 0x00 Seconds Set Watchdog 38 ECROSSER AR B6002 User Manual outportb IO Port Address 0x87 EFER Extended Functions Enable Register outportb IO Port Address 0x87 outportb IO Port Address 0x2D Point to Global Reg Select Multi Function pin BitO 0 Watchdog Function outportb IO Port Address 1 inportb IO Port Address 1 amp OxFE outportb IO Port Address 0x07 Point to Logical Device Number Reg outportb IO Port 1 0 08 Select logical device 8 Watchdog Function outportb IO Port Address 0x30 Device Active register outportb IO Port 1 0 01 outportb IO Port Address OxF5 Select Watchdog count mode seconds
21. driver directory execute the setup exe program The CAN bus APIs Before executing the applications which invoke the CAN bus APIs users should make sure that the Linux device driver or the Windows device driver of CAN bus has been installed On Linux platform after successfully installing the device driver a character device node named Idev canO will be created automatically The APIs open the device node dev canO implicitly so acquiring a file descriptor of 0 by users is not ncecssary In order not to degrade the performance of the CAN bus subsystem the device node 0 is limited to be opened most once at any moment i e if application accesses CAN bus the APIs the application B which either tries to open dev canO or uses CAN bus API will result in failure On Windows platform after successfully installing the device driver there is a device which shows Device Driver for the AR B6002 card in the Device Manager The APIs on Windows platform open this device implicitly User can call the APIs directly without opening the CAN Bus subsystem device CAN Message Format TPE DEFINE typedef char 18 typedef unsigned char u8 typedef short 116 typedef unsigned short 16 typedef unsigned long u32 typedef int 132 typedef struct timeval 1 long tv sec long tv usec timeval typedef struct 132 flags 132 cob u32 id struct timeval timesta
22. e interval between that the system receives a power off signal and that the system generates a power off signal This function sets up the interval in minutes Parameters The parameter is of the type of unsigned long The value of the parameter ranges from 0 255 The unit of the value of the parameter is minutes Return Value If the function sets the delay time successfully it will return 0 If any error the function returns 1 60 ECROSSER AR B6002 User Manual 4 Syntax i32 setHardOffDelayS u32 setTime Description The Hard Off Delay is the interval between that the system is off and that the power 5VSB is off This functions set up the interval in seconds Parameters The parameter is of the type of unsigned long The value of the parameter ranges from 0 255 The unit of the value of the parameter is seconds Return Value If the function sets the delay time successfully it will return 0 If any error the function returns 1 Syntax i32 setHardOffDelayM u32 setTime Description The Hard Off Delay is the interval between that the system is off and that the power 5VSB is off This functions set up the interval in minutes Parameters The parameter is of the type of unsigned long The value of the parameter ranges from 0 255 The unit of the value of the parameter is minutes Return Value If the function sets the delay time successfully it will return 0 If any error the function returns 1 Syntax
23. elay 2 Hours Mode15 Software control mode A Setting by AP B Software mode default as Hardware mode 2 C Soft off delay time can be set D Hard off delay time can be set E In Vehicle system power on by ignition or Remote button can be set F Show Ignition status Voltage for AP only G Create a button Set default Plan AP screen 20 ECROSSER AR B6002 User Manual Table 1 Control Mode Soft OFF Hard OFF Power ON Power OFF Control mer mer mme Sseonds mue inton inton Remote Swin _ 5 1 minute Remote Switch Ignition Remote Switch BEN d dE 1 minute 5 minutes Remote Switch Ignition Remote Switch 7 30 minutes 2 hours Remote Switch Ignition Remote Switch mm me 15 Software By user By user setting By user setting Ignition Remote Switch C ig Another function of Smart Mode 1 If ignition turns back ON during Off Delay Power smart function will stay in operation Off signal will not be send to motherboard The Off Delay will re start after next ignition off Power input monitoring before system boot on during runtime during soft off delay The Power smart function will constantly monitor the input voltage If the input voltage is below X Voltage the standard might have 596 tolerance the Smart Mode will not start the power on procedure When Power smart function has ran in operation and the battery drops
24. erations This allows you to exit Setup without storing any changes in CMOS The previous selections remain in effect This will exit the Setup utility and restart your computer When a password has been enabled you will be prompted to enter your password every time you try to enter Setup This prevents unauthorized persons from changing any part of your system configuration Type the password up to eight characters in length and press lt Enter gt 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 lt Enter gt You may also press Esc to abort the selection and not enter a password To disable a password just press Enter when you are prompted to enter the password A message will confirm that the password will be disabled Once the password is disabled the system will boot and you can enter Setup freely ECROSSER AR B6002 User Manual WATCHDOG GPIO AND BYPASS PROGRAMMING 4 1 Watchdog Programming This section describes the usage of WATCHDOG AR B6050 integrated the WATCHDOG that enable user to reset the system after a time out event User can use a program to enable the WATCHDOG and program the timer in range of 1 255 second s minute s Once user enables the WATCHDOOG the timer will start to count down to zero except trigger the timer by user s program continuously After zeroize the timer sto
25. functions which access the COM port SerialPort cpp The definitions of the functions declared in SerialPort h 53 ECROSSER AR B6002 User Manual 5 3 API List and Descriptions 5 3 1 CAN Bus 1 Syntax unsigned int sendCanMessages canmsg t buffer u8 count Description This function sends out CAN packages over the CAN bus Parameters If there is more than one CAN package to send these CAN packages are stored in a canmsg t array This function sends out packages in a sequential fashion The memory address of the first CAN package to send is pointed at by the parameter buffer The number of CAN packages to send is indicated by the parameter count If the resource of sending out the CAN packages is temporarily unavailable the process which invokes this function will be blocked Block I O until the resource is available again Return Value If this function sends out the packages successfully it returns ERROR SUCOC If this function fails to open the CAN device node it returns ERROR CAN OPEN FAIL If this function has any problem with sending out the CAN packages it returns ERROR API CANSENDMESSAGES Here is an example If the CAN packages in the array canAry have been initialized The code listed below will send out the CAN packages in the canAry over the CAN bus unsigned int result 0 canmsg t 30 pm Initialize the CAN packages in the canAry 30 result sendCanMessages c
26. he GPIO Output channel For example getOutChLevel GPO2 amp val Indicate the GPIO Output channel 2 Indicate the GPIO Output channel 0 and channel 3 getOutChLevel GPOO amp val The parameter val is an unsigned character pointer The function puts the values of the indicated GPIO channels at the memory pointed by val The bit 0 of val shows the value of GPIO Output channel 0 The bit 1 of val shows the value of GPIO Output channel 1 Other bits show the corresponding GPIO Output channels Because there are only four channels bit 4 bit 7 of are always zero 56 ECROSSER AR B6002 User Manual Here is an example If GPIO Output channel 0 and channel 2 are both 1 unsigned char ch getOutChLevel GPOO GPO2 amp ch The returned value of variable ch is 0 5 Return Value the function gets the values successfully it returns O If any error it returns 1 Watchdog 1 Syntax u8 Timer void Description This function read the value of the watchdog time counter and return it to the caller Parameters None Return Value This function return the value of the time counter and return it to the caller as an unsigned integer 2 Syntax void setWtdTimer u8 Description This function sets the watchdog timer register to the value val and starts to count down The value could be 0 255 The unit is second Setting the timer register to 0 disables the watchd
27. mote switch does not make any action to power on B Power on retry If the motherboard cannot be turned on normally PSON does not go to low the Power smart function will turn off 5VSB and then turn on 5VSB and retry Send on 18 ECROSSER AR B6002 User Manual pulse to motherboard again The power board will re try this procedure until successfully turn on motherboard C Power smart function sends ON pulse to motherboard when ignition is on for more than 2 seconds D Power smart function will ignore the status change of ignition after ON pulse is send to motherboard for 3 minutes After this period the Power smart function will start to check its status This can avoid an improper OFF process before the OS is complete booted E Power off is controlled by remote switch or ignition Remote switch has higher priority than ignition Remote switch is optional F Power smart function sends off pulse to motherboard 5 seconds after ignition is turned off or remote switch is pressed Soft delay G Power smart function will ignore the status change of ignition and remote switch during the OFF pulse is sent out and the PSON return to high This will avoid an improper ON process before the motherboard is completely shot off IL The digital output optional will go from high to low at the moment that OFF pulse is sent to motherboard The low state will be kept until PSON back to high If the PSON does not back
28. mp 46 ECROSSER AR B6002 User Manual 16 length u8 data 8 canmsg t To transmit a CAN package the programmer has to fill in the fields in the variable of type canmsg t and pass this canmsg t variable as an argument to invoke the APIs The fields in CAN message are described below flags This field holds the information of message type Programmers can set the message type as 1 Standard Data Frame canmsg t msg Declare a variable msg of type canmsg t msg flags 0 Setting the flags field to 0 defines the msg as an ordinary standard data frame 2 Remote Transmission Request in Standard Data Frame format canmsg t msg msg flags 20 Setting the flags field to 0 defines the msg as an ordinary standard data frame msg flags msg flags 56 Enable the RTR flag 3 Extended Data Frame canmsg t msg msg flags 0 5 Setting the EXT flag in the flags field defines the msg as an extended data frame 4 Remote Transmission Request in Extended Data Frame format canmsg_t msg msg flags 0 56 56 Enable the RTR flag cob This field is reserved for holding a message communication object number id CAN message ID timestamp When a CAN package is received the CAN device driver will annotate a timestamp to the timestamp field in the canmsg_t variable and return this canmsg_t variable to the caller 47 ECROSSER AR B6002 U
29. nabled Test Disabled 26 ECROSSER AR B6002 User Manual Enabled This item sets the mode for dynamic video DVMT mode Disabled memory thechology This item sets the mode for GFX video Total GFX Memory 27 5 lt AR B6002 User Manual 3 3 Power Setup ACPI Function Note The control keys are listed at the bottom of the menu If you need any help with the item fields you can press the F1 key and the relevant information will be displayed ACPI Function Enabled ACPI Suspend Type ACPI System Support ACPI 81 83 Sleep State 28 CROSSER AR B6002 User Manual 3 4 PnP PCI Setup The option configures the PCI bus system All PCI bus system on the system use INT thus all installed PCI cards must be set to this value Main Advanced Power FPeripheral PC Health Boot Exit aa Resources Controlled By Au to ESCD Menu Level d X IRQ Resources Default 1s Disabled Select Enabled to reset Extended System configuration Data ESCD when you exit Setup if you have installed a new add on and the system reconfiguration has caused such a serious conflict that the os cannot boot Note The control keys are listed at the bottom of the menu If you need any help with the item fields you can press the F1 key and the relevant information will be displayed Item Option Description Normally you leave this field Disabled select Enabled to reset E
30. og function and stops the countdown Parameters The parameter val is the value to set to watchdog timer register The range is 0 255 Return Value None 39 ECROSSER AR B6002 User Manual 5 3 3 Power Subsystem 1 Syntax 132 getlgnStatus ignStatus Description Get the current ignition status The ignition has two statuses ON or OFF Parameters This function puts the ignition status at the memory pointed by the unsigned character pointer ignStatus If the returned status is 5 the ignition is ON If the returned status is 0x5a the ignition is OFF There are macros of Ignition ON and Ignition OFF in pwr acce h Return Value If the function gets the ignition status and put it at the memory pointed by the argument successfully this function will return O If any error the function returns 1 2 Syntax 132 setSoftOffDelayS u32 Description The Soft Off Delay is the interval between that the system receives a power off signal and that the system generates a power off signal This function sets up the interval in seconds Parameters he parameter is of the type of unsigned long The value of the parameter ranges from 0 255 The unit of the value of the parameter is seconds Return Value If the function sets the delay time successfully it will return 0 If any error the function returns 1 3 Syntax 132 setSoftOffDelayM u32 Description The Soft Off Delay is th
31. ource code of the utility Makefile On Windows platform 1 AR B6002 h The header file of the APIs and macro definition This header file is an aggregate header which includes APIs declarations and macros for CAN Bus GPIO Watchdog and Power Subsystem AR B6002 lib The API library in static library format This library is an aggregate library It includes APIs for CAN Bus GPIO Watchdog and Power Subsystem AR B6002 dll The API library in dynamically linked library format This library is an aggregate library It includes APIs for CAN Bus GPIO Watchdog and Power Subsystem CAN DEV FUNC h The header file for the CAN bus test utility errcode h The macro definitions of returned error code CAN DEV cpp The source code of the CAN bus test utility 51 ECROSSER AR B6002 User Manual 5 2 2 GPIO and Watchdog On Linux platform 50 acce c The source code of the Watchdog and GPIO APIs for accessing the SuperlO sio acce h This file includes the declarations of the APIs and macro definitions main c The source code of the utility Makefile On Windows platform 1 AR B6002 h The header file of the APIs and macro definition This header file is an aggregate header which includes APIs declarations and macros for CAN Bus GPIO Watchdog and Power Subsystem AR B6002 lib The API library in static library format This library is an aggregate library It includes APIs for CAN Bus GPIO Watchdog and Po
32. p Peripherals Setup PC Health Setup Boot Setup Exit Setup Once you enter the Award BIOS 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 23 5 lt AR B6002 User Manual 3 1 Main Setup The BIOS setup main menu includes some options Use the Up Down arrow key to highlight the option and then press the Enter key to select the item and configure the functions Date mm dd ywvy Note The control keys are listed at the bottom of the menu If you need any help with the item fields you can press the F1 key and the relevant information will be displayed Format MM DD YYYY month day year oet the system date Note that the Day automatically changes when you set the date System Date Format HH MM SS System Time Set the system time hour minute second The onboard SATA Ports support user connecting up to 2 SATA HDD IDE Channel 0 N A The first SATA Port is the IDE Channel 0 Master Slave Master and the second is IDE Channel 1 Master BIOS will auto detect the HDD type ECROSSER AR B6002 User Manual All Errors Select the situation in which you want the Halt On No Errors BIOS to stop the POST process and notify All but keyboard 25 5 lt 3 2 Advanced Chipset Setup This section consis
33. p triggering the WATCHDOG will generate a signal to reset the system It can be used to prevent system crash or hang up The WATCHDOG is disabled after reset and should be enabled by user s program Intel also provides a Linux watchdog driver to access the feature on AR B6050 It can be accessed via dev watchdog About the related operations of Linux watchdog please refer Linux website Please refer to the following table to program WATCHDOG properly and user could test WATCHDOG under Debug program Address port 2E and Data port 2F C debug enter debug mode To enter configuration 0 2E 07 point to Logical Device Number Reg 0 2F 07 select logical device 7 WATCHDOG 2E 72 JEU To select keyboard reset as WATCHDOG output to reset system O 0 2E 72 Preparing to select the unit of timer equals minute or second To read the value of index 2 The value xx equals value of index 2F OR 80 OR 80 unit is second OR 00 unit is minute 36 ECROSSER AR B6002 User Manual The value ranges between 01 1 255 seconds 00 To disable WATCHDOG To quit debug mode Notice The actual timer value may not match with the theoretical That is because of the tolerance of internal oscillating clock and cannot be adjusted or optimized Rev Date Name Description include lt conio h gt include lt stdlib h gt include lt stdio h gt type
34. portb IlO PORT BASE OxF1 outportb IlO PORT BASE 1 0x0A Read W83627HF GPIO34 37 Status if not OxAO error delay 100 data inportb IlO PORT BASE 1 amp 0xF0 if data 0xA0 result z1 Exit W83627HF Config outportb lO PORT BASE 0xAA if result Show Fail else Show Pass return result Function Show Help Input Change Return Description Show Title string void Show Help clrscr printf GPIO Test utility for W83627HF n n printf GPIOO GPIO1 n printt GPIO2 1 GPIO3W printt GPIO4 ik GEA 22 GPIOS n printf GPIO6 xExET GPIO7 n printf GND X VCC n 43 ECROSSER AR B6002 User Manual Function Show Fail Input Change Return Description Show Fail Message a a aa void Show_Fail textcolor LIGHTRED gotoxy 20 10 3515811 aaa aa gotoxy 20 11 cprintf zi a a al a gotoxy 20 12 8959517 a gotoxy 20 13 cprintf zi au ad a gotoxy 20 14 cprintf zin a a aa o aaa j e Function Show_Pass Input Change Return Description Show Pass Message a a Lu ELLE void Show Pass textcolor LIGHTGREEN gotoxy 20 10
35. power subsystem connects to main system via COMG the XX must be greater or equal to 6 1 Modify the grub conf root linux vi boot grub grub conf default 0 timeout 5 splashimage hd0 0 grub splash xpm gz hiddenmenu title Fedora Core 2 6 27 5 117 FC10 root hdO 0 kernel vmlinuz 2 6 27 5 117 FC10 root dev hda2 rhgb quiet 8250 nr uartsz6 noirqdebug initrd initrd 2 6 27 5 117 FC10 img 2 List the status of the COM ports in the system setserial g dev ttyS dev ttySO UART 165504 Port 0 0318 IRQ 4 dev ttyS1 UART 16550A Port 0 0218 IRQ 3 dev ttyS2 UART 16550A Port 0x03e8 IRQ 11 dev ttyS3 UART 16550A Port 0x02e8 IRQ 10 dev ttyS4 UART 165504 Port 0 0418 IRQ 11 dev ttyS5 UART 16550A Port 0x04e8 IRQ 10 The node dev ttyS5 corresponds to COME The IO port is 0x4e8 IRQ 10 65
36. ser Manual length The number of the data bytes which are sent or received in the data field of CAN message This field is necessary while transmitting a Standard or Extended Data Frame Programmers have to explicitly set up this field The length of data is 0 8 For example canmsg 1 msg msg data 0 1 msg data 1 Oxb2 msg data 2 0 3 msg length lt 3 data The byte array which holds the message data 48 ECROSSER AR B6002 User Manual 5 1 2 GPIO and Watchdog Overview AR B6002 provides both a GPIO interface and a Watchdog timer Users can use the GPIO and Watchdog APIs to configure and to access the GPIO interface and the Watchdog timer The GPIO has four input pins and four output pins The Watchdog timer can be set to 1 255 seconds Setting the timer to zero disables the timer The remaining seconds of the timer to reboot can be read from the timer In this GPIO and Watchdog package on Linux and Windows platform we provide 1 API source code 2 GPIO and Watchdog test utility and the utility source code 49 ECROSSER AR B6002 User Manual 5 1 3 Power Subsystem Overview When the AR B6002 is at Power Mode 15 the Power Subsystem APIs can be used to get and set the configuration of power subsystem By invoking the Power Subsystem the users can 1 Get the current status of ignition ON or OFF 2 Set the Power On mode This setting will be kept in the power subsystem and will
37. to high within 3 minutes the Power smart function will enter a retry cycle described in next section Power off retry If the motherboard cannot be shouted down normally PSON does not go to high within 3 minutes after OFF pulse is sent the Power smart function will send off pulse to motherboard again If the motherboard still cannot be shouted down normally the power output will be turned off directly Figure 3 J Hard off delay 1 minutes During this period system can be turned on again if the off procedure already finished and power button is pushed again or ignition on again Mode 3 A Same as mode 2 except for soft hard off delay time B Soft off delay 1 minute C Hard off delay 5 minutes Mode 4 A Same as mode 2 except for soft hard off delay time B Soft off delay 30 minute C Hard off delay 2 Hours 19 ECROSSER AR B6002 User Manual Mode 5 See Figure 2 Same as mode 2 except that the power on is controlled by remote switch A Power on is controlled by remote switch ignition must be turned on 2 seconds before remote switch is pressed B The Smart Mode sends off pulse to motherboard 5 seconds after ignition is turned off or remote switch is pressed Soft delay C Hard off delay 1 minutes Mode 6 A Same as mode 5 except for soft hard off and delay B Soft off delay 1 minute C Hard off delay 5 minutes Mode 7 A Same as mode 5 except for soft hard off and delay B Soft off delay 30 minute C Hard off d
38. ts of configuration entries system performance or modify some system features according to your preference Some entries are required and reserved by the board s design Advanced Be THU S c E Hyper Threading Technology Enabled Quick Power On Self Test Enabled Full Screen LOGO Show Disabled x APIC Mode Enabled Init Display First onboard Boot Display CRT On chip Frame Buffer Size 8MB DVMT Mode Enabled Total GFX Memory 128MB AR B6002 User Manual allow you to improve your Boot Exit Item Help Menu Leve P Enabled for windows and Linux 2 4 x 05 optimized for Hyper Threading Technology and Disable for other 05 05 not optimized for Hyper Threading Technology Note The control keys are listed at the bottom of the menu If you need any help with the item fields you can press the F1 key and the relevant information will be displayed Option Description Hyper Threading Enabled Enable for Windows XP and Linux Technology Disabled Disable for other OS This category speeds up the Power On Self Test POST after you have powered on the computer If it is set to Enabled the BIOS will shorten or skip some check items during POST Pull Sereen Show select Enabled to show the full screen Disabled logo if you have an add in BIOS On Chip Frame 1Mb This Item is for setting the Frame Buffer Buffer Size 8Mb Share system memory as display Quick Power On Self E
39. value of GPIO Input channel 1 Other bits show the corresponding GPIO Input channels Because there are only four channels bit 4 bit 7 of val are always zero Here is an example If GPIO Input channel 1 and channel 3 are both 1 unsigned char ch getInChLevel GPI1 GPI8 amp ch The returned value of variable ch is Oxa Return Value If the function gets the values successfully it returns 0 If any error it returns 1 57 ECROSSER AR B6002 User Manual 2 Syntax i32 setOutChLevel i32 channel u8 val Description Set the value of GPIO Output according to the variable val Parameters The parameter channel indicates the GPIO Output pins to set Users can use the macros GPO1 GPO2 to indicate the GPIO Output channels The parameter val indicate the value to be set to GPIO Output channel The acceptable values is limited to O and 1 For example Setting the GPIO Output channel 2 to 1 setOutChLevel GPO2 1 Setting the GPIO Output channel 0 and channel 3 to 0 getInChLevel GPOO GPO3 0 Return Value If the function sets the values successfully it returns 0 If any error it returns 1 Syntax i32 getOutchLevel i32 channel u8 val Description Get the value of GPIO Output and put the value at val Parameters The parameter channel indicates the GPIO Output pins to show Users can use the macros GPOO GPO1 GPO2 GPOS to indicate t
40. wer Subsystem 6002 The API library in dynamically linked library format This library is an aggregate library It includes APIs for CAN Bus GPIO Watchdog and Power Subsystem errno h The macro definitions of returned error code GPIO Watchdog cpp The source code of the utility 52 ECROSSER AR B6002 User Manual 5 2 3 Power Subsystem On Linux platform 1 pwr acce c The source code of the APIs for accessing the power subsystem pwr acce h This file includes the declarations of the APIs and macro definitions main c The source code of the utility Makefile On Windows platform AR B6002 h The header file of the APIs and macro definition This header file is an aggregate header which includes APIs declarations and macros for CAN Bus GPIO Watchdog and Power Subsystem AR B6002 lib The API library in static library format This library is an aggregate library It includes APIs for CAN Bus GPIO Watchdog and Power Subsystem AR B6002 dll The API library in dynamically linked library format This library is an aggregate library It includes APIs for CAN Bus GPIO Watchdog and Power Subsystem PWRPIC h The main haeder file for the GUI PWRPIC cpp The definitions of the class declared in PWRPIC h PWRPICDIg h The main header file for the class of performing the Power Subsystem access PWRPICDIg cpp The definitions of the classs declared in PWRPICDIg h SerialPort h The header file for
41. xtended System Configuration Data ESCD when you exit Setup If you have installed a new add on and the system reconfiguration has caused such a serious conflict then the operating system cannot boot The Award Plug and Play BIOS has the capacity to automatically configure all of the boot and Plug and Play compatible devices However this capability means absolutely nothing unless you are using a Plug and Play Reset Configuration Enabled Data Disabled Resources Auto ESCD Controlled By Manual 29 ECROSSER AR B6002 User Manual operating system such as Windows 95 If you set this field to manual then you may choose specific resources by going into each of the submenus When resources are controlled manually assign a type to each system interrupt depending on the type of the device that uses the interrupt IRQ Resources N A 30 CROSSER AR B6002 User Manual 3 5 Peripherals Setup This option controls the configuration of the board s chipset Control keys for this screen are the same as for the previous screen ERIT Peripheral Blei 4 Onboard Serial Port 2 2F8 IRQ3 Onboard Serial Port 3 3E8 IRO11 Menu Level 4 Onboard Serial Port 4 2bE8 IRO10 Onboard Serial Port 5 4F8 IRO11 USB Device Setting Press Enter onchip IDE Device Note The control keys are listed at the bottom of the menu If you need any help with the item fields you

Download Pdf Manuals

image

Related Search

Related Contents

TouchSystems TE1793R-D touch screen monitor  Sonic Blade - elektrisches Küchenmesser  "user manual"  VPCEB4CGX/BJ  body-manager.com  Users Manual - stephen  PAT400 Series - Electrocomponents  Document DjVu  PAP-0356(OWNERS MANUAL_FRONT)_Rev.4.0.ai    

Copyright © All rights reserved.
Failed to retrieve file