Home
AR-B6002 Board User Manual
Contents
1. ECROSSER Return Value If the function gets the values successfully it returns 0 If any error it returns not zero 4 3 3 Power Subsystem Under Linux platform 1 Syntax 132 getlgnStatus u8 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 0xa5 the ignition is ON lf the returned status is Oxba 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 0 If any error the function returns 1 2 Syntax i32 setSoftOffDelayS u32 setTime 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 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 3 Syntax i32 setSoftOffDelayM u32 setTime Description The Soft Off Delay is the interval between that the system receives a power off signal an
2. Mm Mode ATX function System will be turned on and off by the remote switch It operates as standard PC power button E Mode AT mode Auto PWRBIN function The power will be ON immediately when external power present The power will be OFF immediately when external power is disconnected Mm Mode2 3 4 Ignition Only A Power on is controlled by ignition remote switch does not make any action to power on B Power subsystem sends ON command to motherboard when ignition is on for more than 2 seconds C Power subsystem will ignore the status change of ignition after ON command is sent to motherboard for 3 minutes After this period the Power Module will start to 15 ECROSSER check its status This can avoid an improper OFF process before the OS is completely booted D Power off is controlled by ignition Remote switch does not make any action to power off E When Ignition is turn off Power subsystem sends OFF pulse to motherboard after Soft Off delay F Power subsystem will ignore the status change of ignition during the OFF command Is sent out and OS is completely shut down This will avoid an improper ON process before the motherboard is completely shot off G The system can be turned on again during Hard off delay period if the OFF procedure already finished and the ignition is ON again m Mode 5 6 7 Ignition remote Switch A Power on is controlled by remote switch ignition must be tur
3. channel indicates the GPIO Output pins to show Users can use the macros GPOO GPO1 GPO2 GPO to indicate the GPIO Output channel For example getOutChLevel GPO2 amp val 11 Indicate the GPIO Output channel 2 Indicate the GPIO Output channel 0 and channel 3 getOutChLevel GPOO GPO3 amp val ll 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 val are always zero Here is an example lf GPIO Output channel 0 and channel 2 are both 1 unsigned char ch getOutChLevel GPOOIGPO 2 amp ch The returned value of variable ch is 0x5 Return Value If the function gets the values successfully it returns 0 If any error it returns 1 Under windows platform 1 Syntax int getGPIOBitValue int iBitNumber bool bValue Description Get the value of GPIO and put the value at bValue Parameters The parameter iBitNumber indicates the GPIO Input pins to show Users can use the macros GPO BIT 0 GPO BIT 1 GPO BIT 2 GPO BIT 3 GPI BIT 4 GPI BIT 5 GPI BIT 6 or GPI BIT 7 to indicate the GPIO channel For 56 ECROSSER example getGPlOBitValue GPO BIT 0 a
4. root RD System ap and libj cd power_subsystem root RD System power subsysteml Is libPwrAcce a_ libPwrAcce so main c pwr acce h pwr utility root GRD System power subsystemj pwr utility 0 Exit 1 Set Soft Off Delay 2 Set Hard Off Delay 4 Set PIC Default 3 Set Power On Mode 5 Set Soft Off Dealy in Minutes Please input 40 ECROSSER 4 2 File Descriptions 4 2 1 CAN Bus On Linux platform 1 can h It is the header file of the API and macro definitions lipcan a It is the API library in static library format lipcan so The API library is shared library format cantest The file is executable file for test utility On Windows platform 1 AR B6002 h The header file is 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 2 AR B6002 lib The API library is static library format This library is an aggregate library It includes APIs for CAN Bus GPIO Watchdog and Power Subsystem 3 AR B6002 dll The API library is dynamically linked library format This library is an aggregate library It includes APIs for CAN Bus GPIO Watchdog and Power Subsystem 4 2 2 GPIO and Watchdog On Linux platform 1 SIO acce c The source code of the Watchdog and GPIO APIs is for accessing the SuperlO sio acce h This file includes the declarations of the APIs a
5. vi boot grub grub conf default 0 timeout 5 splashimage hd0 0 grub splash xom gz hiddenmenu title Fedora Core 2 6 27 5 117 FC10 root hd0 0 kernel vmlinuz 2 6 27 5 117 FC10 ro root dev hda2 rhgb quiet 8250 nr_uarts 6 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 16550A Port 0x03f8 IRQ 4 dev ttyS1 UART 16550A Port 0x02f8 IRQ 3 dev ttyS2 UART 16550A Port 0x03e8 IRQ 11 dev ttyS3 UART 16550A Port 0x02e8 IRQ 10 dev ttyS4 UART 16550A Port 0x04f8 IRQ 11 dev ttyS5 UART 16550A Port 0x04e8 IRQ 10 The node dev ttyS5 corresponds to COME The IO port is 0x4e8 IRQ 10 67 ECROSSER OPTIONAL MODULE ll INTRODUCTIONS Acrosser has verified some optional modules for different applications The following is brief introduction 5 1 GPS Module Acrosser verify a high performance low power consumption small size gt very easy integrated GPS engine board designed for a broad spectrum of in vehicle applications The GPS engine board will track satellites provide fast time to first fix and quick navigation updates Features Build on high performance and high sensitivity GPS chipset Quick Cold Start time and Warm Start time 5 2 Bluetooth Module Customers can easily connect Bluetooth device with our system Features High reliable Single Chip Bluetooth System Blueto
6. ECROSSER 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 package is temporarily unavailable the process will be temporarily halted Block I O until the resource is available again Return Value None 5 Syntax 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 t The number of packages to receive is indicated by the parameter count Before receiving finished the process will be temporarily halted Block VO if there is no incoming CAN package Return Value If this function receives the packages successfully it returns O If this function fails it returns not 0 6 Syntax int CanSetBaudRate unsigned long Baud Description This function sets up the speed Baud rate of sending and receiving CAN packages Parameters The parameter Baud could be the unit is Kops 10 20 50 100 125 250 500 800 1000 The default speed is 0 Kbps Return Value This function returns 0 if it set the Baud rate successfully If this function fails it returns not 0 7 Syntax int CanGetBauRate unsigned lo
7. Fase Fi HEEL Gy driver E SetupDriver Driver Information Device CAN Bus Driver Ke Driver Date 0429 2013 EE oe ge Led Neve old E SetnpDriyer Driver Information Device CAN Bus Driver Ke Driver Date 04 29 2013 Eiter verso tia EEN New j Old Setup em om WE WEE WE GE EN GE WEE WEE WEN GE WEE WEE WEE au Wal wal wal hel eel Wal wel wed el 35 ECROSSER 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 dev canO will be created automatically The APIs open the device node dev canO implicitly so acquiring a file descriptor of dev can0 by users is not necessary In order not to degrade the performance of the CAN bus subsystem the device node Idev can0 is limited to be opened at most once at any moment i e if application A accesses CAN bus via 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 CAN Bus Driver 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 CA
8. 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 Option Description 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 lt Enter gt on this item to confirm Save amp Exit Setup Save to CMOS and EXIT Y N Y 31 ECROSSER Load Optimized Defaults Exit Without Saving Set Password When you press lt Enter gt on this item you will see a confirmation dialog box with a message like this Load Optimized Defaults Y N N Press lt Enter gt on this item to confirm Quit without saving Y N Y Press lt Enter gt on this item to confirm ENTER PASSWORD 32 Press Y to load the default values that are factory set for optimal performance system operations 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
9. These parameters include temperatures fan speeds and voltages ee ee PC Health sun Exit rent Systen Temp IAr eb SE Item Help nt CFUl Temperature Menu Level 29 ECROSSER 3 Boot Setup This option allows user to select sequence priority of boot device s and Boot from LAN Main Advanced Power PnP PCI Peripheral FC Health CDROM Item Help second Boot Device Hard Disk Third Boot Device USB FDD Boot Other Device Enabled Menu Level gt Lan Boot Select Disabled Select four Boot Device Priority b Hard Disk Boot Priority 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 Option Description Hard Disk CDROM The BIOS attempts to load USB FDD the operating system from USB CDROM the devices in the selected LAN sequence Disabled First Second Third Boot Device Other Boot Device These fields allow the system to search for an OS from LAN These fields set the Boot Priority for each Hard Disk Enabled Disabled LAN Boot Select Hard Disk Boot Priority N A 30 ECROSSER 3 8 Exit Setup This option is used to exit the BIOS main menu and change password Main Advanced Power PunP PCI Peripheral PL Health Boot Exit Item Help Load Optimized Defaults Exit Without Saving net Password Menu Level b Save Data to CMOS Note
10. i eras Te amor e eroe a eros RJ45 connector for Gigabit Ethernet port 1 Upper Port 2 EA Lower Port 1 ts NG gt 15 CN7 USB connector 16 CN28 PIC Programming connector Upper Port 4 PIC programming connector Lower Port 3 prog 9 la P Aki HE 11 ECROSSER 17 CN20 Setting Voltage level of Battery 18 VGA1 D SUB 15 female connector for VGA output STATUSI SETTING SCH D SUB 15 female connector for i VGA output 23 12V Default OF Or Po ow os on on HERE 422R 422R e on oF om ov rtf oo el sw cow sem ps sor som g 12 ECROSSER 23 PWR1 Power Input Terminal Block 24 FUSE1 Fuse connector Connector 27 26 28 JP7 JP8 JP9 RS 232 RS 422 RS 485 Selection for COM1 CN23 CN24 STATUS STATUS JP7 JP8 JP9 RS 232 1 3 1 3 RI 1 2 1 2 COM1 1 2 COM3 Cu Default 2 4 2 4 Default di 3 5 3 5 3 4 COM1 3 4 COM3 e RS 422 3 4 4 6 4 6 RI 5 6 COM2 5 6 COM4 3 5 Default RS 485 56 N A 7 8 COM2 7 8 COMA 27 26 28 JP10 JP11 JP12 RS 232 29 U8 SPI BIOS ROM RS 422 1 RS 485 Selection for COM STATUS JP10 JP 11 JP12 RS 232 i 1 3 1 3 Default 2 4 2 4 SPI BIOS ROM 3 5 3 5 RS 422 3 4 4 6 4 6 3 5 4 6 13 ECROSSER 30 CN21 BIOS Programmable Header 31 DIMM1 DDR II SODIMM Socket lom fe waa e mso fa mon THUTEET DDR 3 SODIMM Socket z H Le m K
11. 2 2 Connector and Jumper Setting Table 10 2 3 Power NNN 15 24 Remote Switch EN 18 2 5 Status LEID 18 2 6 Fuseselechon keen teres rene res teste ne rei LEE LEE Re ee ee ed 19 2 7 COM1 1 2 to choose RS 232 RS 485 RS 422 by jumper setting 19 6 GPIO E 19 3 BIOS SETTING sesse eek Ee KEER RENEE KEER KEREN Re NEER EER EER KEREN RENE 20 3 1 Main SetUD iese ee ee EE RE Ee est kk ee EE tee ee Ee ee Ee kene e eee eee ee pene eee Ee ee ee 21 3 2 Advanced SetuD iese Ee EE ER EE ER ee Ee eee ke Ee RE ee RE ee Ee ee 23 3 3 Power Getunp iese esse ee Ee EE ee ee EE ee Ee ee Ee ee Ee ke eee ee ee ee ee eee eee Ee ee 25 4 PR EID E 26 5 PENN CU WE 28 3 6 PO Health SA 29 3 7 Boot SEDEER AR RE ee Ee RE ee ERR RER RER N SI ner 30 29 od od eN EE N OE EE N EE N EK ee EN 4 SOFTWARE INSTALLATION amp PROGRAMMING GUIDE 33 2 HON 33 2 PEDER 41 4 3 API List and Descriptions iese ee ee ER Ee Ee Ee RE Re ER ee Ee EE ee ee 44 4 4 Appendix Programming Gudde 67 5 OPTIONAL MODULE INTRODUCTIONS nan nana nena ee se ees emer ese 68 dl PS MOOUIE io ee EE GE ee EE GE ER 68 ECROSSER 5 2 Bluetooth Module 68 5 3 WiFi Module eee ER ER ER eke kk eke eee 68 5 4 3 5G Module 69 5 5 GPIO and CAN bus cable colOf EES ee ee ee ee 69 FAQ WEE 70 Appendix Technical Support FoOrm ranxenannvnnnennnnnnnnennnnennnuvnnn 71 ECROSSER INTRODUCTION AR B6002 series with Intel Atom D425 D525 processor is a multi functional In Vehicle computer
12. F1 gt key and the relevant information will be displayed Set th tem date Note that the Day Format MM DDIYYYY TS SYSTEM gate NOME MALTE ey automatically changes when you set the date System Date month day year Format HH MM SS System Time Set the system time hour minute second 21 ECROSSER 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 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 yOu 22 ECROSSER 3 2 Advanced Setup This section consists of configuration entries that allow you to improve your system performance or modify some system features according to your preference Some entries are required and reserved by the boards design Main Advanced Power PnF PCI Peripheral FC Health Boot Exit Enabled Item Help Quick Power On Self Test Enabled Full Screen LOGO Show Disabled x APIC Mode Enable Menu Level b Init Display Firat inboard Enabled for Windowsa Boot Display CRT AP and Linux 2 4 05 kale eae RE Ee SME optimized for Hyper DYMT Mode Enable Threading Technology Total GFA Memory L28ME and Disable for other 08 05 not optimized for Hyper Threading Technology Note The control keys are listed at
13. It includes APIs for CAN Bus GPIO Watchdog and Power Subsystem 43 ECROSSER 4 3 API List and Descriptions Note For programming under Windows and Vista environment please take care about Microsoft UAC policy Or else user must to change UAC setting from Default to Never Notify to run the program Se User Account Control Settings e e me Choose when to be notified about changes to your computer User Account Control helps prevent potentially harmful programs from making changes te your computer Tell me more about User Account Control settings Always notify Never notify me when Programs try to install software or make changes to my computer make changes to Windows settings i Not recommended Choose this only if you need to use programs that are not certified for Windows 7 Siem because they do not support User Account Control Never notify Cancel Note CAN Bus must be initialized before activation by syntax lib_init void There are normal mode and configure mode for CAN bus The normal mode can be entered from configure mode by syntax CanStart void The normal mode is the standard operating mode In this mode the device actively monitors all bus messages and generates acknowledge bits error frames etc This is also the only mode in which the function will transmit messages over the CAN bus The configure mode can be entered from normal mode by syntax CanStop void Config
14. Return Value If the function gets the hard off delay successfully this function will return TRUE If any error the function returns FALSE 7 Syntax BOOL PowerPic_GetPowerOnMode BYTE pMode 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 pMode is a pointer which points to an BYTE The returned code is stored at this memory There are two power on modes pMode 0xa5 boot up by the Ignition pMode 0x5a boot up by the Remote Switch Return Value If the function gets the power in mode successfully this function will return TRUE If any error the function returns FALSE 8 Syntax BOOL PowerPic_GetBatteryVoltage float pVoltage Description The function gets the voltage reading of the battery Parameters The parameter pVoltage is a pointer which points to an variable of type float The unit of the returned value is voltage Return Value If the function gets the battery voltage successfully this function will return TRUE If any error the function returns FALSE 9 Syntax BOOL PowerPic_GetFirmwareVersion T PIC INFO pPicinfo Description The function gets version information of Power Subsystem firmware Parameters The parameter is a pointer which points to a T PIC INFO structure which consists of 9 BYTE Here is the definition of structure T PIC INFO type struct typedef struct T PI
15. The length of data is 0 8 For example canmsg_t msg msg data 0 Oxa1 msg data 1 Oxb2 msg data 2 Oxc3 msg length 3 data The byte array holds the message data 3 ECROSSER 4 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 GPIO and Watchdog test utility P S The following is Windows reference pictures about the utility file AR B6002 vi 1 0 0 GPIO Seles Driver Status NOT READY Cutput Input CAN Bus DES EP GPI7 GRAFI mee 2 6P37 GPI6 GP36 SPIS GPSS watchDog Timer i POO tapad GPI4 GP34 P S The following is Linux reference pictures about the utility file root RD System ap_and_lib cd gpio_watchdog root RD System gpio_watchdog Is libSioAcce a_ libSioAcce so main c slo acce h sio utility root RD System gpio_watchdog sio utility 38 CROSSER 0 Exit 1 Set GPIO Output 2 Set Watchdog Timer GPIOIN f 1111 Information Please input GPIO OUT 0 0000 Watchdog Counter 0 0000 0
16. suitable for using in various applications Besides basic VO ports like VGA USB COM LAN and GPIO and has embedded CAN BUS function to allow microcontrollers and devices to communicate with each other in vehicle In addition AR B6002 has intelligent power management function with software utility to monitor power status and to control power sequence and is also compliant with most industry standards for in vehicle usage including CE FCC and E Mark 13 1 1 Specifications E Intel Atom D525 D425 Mm 1x SO DIMM supports DDRIII up to 4GB Memory DDR3 data transfer rates of 800 MT s Mm 1xVGA Mm 4xUSB2 0 E 2xSATA m 1xCFil m 4 x RS 232 m 1x GbE m 1 x Mic In 1 x Audio Out 1 x Remote Switch m 1 x CAN bus Implementation ISO 11898 m 8 bit GPIO with Am dout m Optional WiFi Bluetooth GPS 3 5G solution for selection Mm Intelligent power management support standard 12V 24V car battery ECROSSER 1 2 Package Contents Check if the following items are included in the package e Quick Manual 6 AR B6002 e 1x Software Utility CD 1 3 Block Diagram 300 Ni DC L IN EIE BOET TEL Pineriew D D425 Pineview D 0525 1 BirHe CKSO5 VAL Finawiaw DO IN Finaviaw bl AOFIZ1IIA SATA POWER X 2 OMIN d ari a FOIE LAN CHIF p ik LAN com RIES SFI ET IEL I MINIFCIT 2 158 apt 2104 Z pei 00000 ICHEM TOE JAIA 2 0 ANTA 2 Lal CH CM Jugar I O LAC RUD IG USE 1 1 2 0 MIL IM Fink Cou FORT
17. ta GFIG id Hd band Ka USB Ha TJET T DEP EKTET TT Ia Ulni FEIT Mib IR 1 COM FORT 4 1 mari r TIL mard EE CH 7 LEBEI TIT ETL ETE TE Hk imaa Fin hud Ek 1 smal pie ITIL lemi dr leg ur an Form id FIC T Form bum id on len HELE PE dl rn irla man N EEN ECROSSER P H W INFORMATION This chapter describes the installation of AR B6002 At first it shows the Function diagram and the layout of AR B6002 It then describes the unpacking information which you should read carefully as well as the jumper switch settings for the AR B6002 configuration ECROSSER 2 1 Locations of Connector and Jumper Setting 2 1 1 Locations Top side CAR B6002D4 Sa Le om ee nn pm O Z Ove ou gt Minipciet Ga Bon O Minipci2 gon COM gon en ane Ge ECROSSER 2 1 2 Locations Bottom Side ECROSSER 2 2 Connector and Jumper Setting Table 1 CN6 BLUETOOTH connector 2 CN8 GPS connector e ars ON Pe ew SIM Card Slot for 3G Module 7 BH1 CMOS battery holder 8 MINIPCIE1 Mini PCI E connector for 3 5G module CMOS battery holder z MINI PCI E connector 10 ECROSSER 9 MINIPCIE2 Mini PCI E connector 10 CN17 FPGA Programmable HEADER MINI PCI E connector 1 HDD LED LS Power LED
18. 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 Option Description Hyper Threading Enabled Enable for Windows XP and Linux Technology Disabled Disable for other OS 23 ECROSSER 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 Quick Power On Self Enabled Test Disabled Enabled Select Enabled to show the full screen Full S Logo Sh rr Disabled logo if you have an add in BIOS This Item is for setting the Frame Buffer Share system memory as display memory Enabled This item sets the mode for dynamic video DVMT mode Disabled memory technology This item sets the mode for GFX video memory On Chip Frame 1Mb Buffer Size 8Mb Total GFX Memory 24 ECROSSER 3 3 Power Setup Main Advanced PnP PCI Peripheral PL Health Boot Exit Enabled Item Help ACPI Suspend Type 53 STR Menu Level b 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 Item Option Description ACPI Function Enabled ACPI System Support S3 ACPI Suspend Type s1 ACPI S1 S3 Sleep State 25 ECROSSER 3 4 PnP PCI Setup The option configures the PCI b
19. 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 If the function sets power on mode successfully it will return 0 If any error the function returns 1 60 ECROSSER 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 Value li the delay time is returned successfully the function returns 0 If any error it returns 1 9 Syn
20. 000 4 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 APIs the users can 1 2 Se EN AE SS Get the current status of ignition ON or OFF set the Power On mode This setting will be kept in the power subsystem and will 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 39 CROSSER The power subsystem connects to the main system via the COM6 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 Programming Guide for more information Users don t need extraordinary setup on Windows platform to support COM6 In this Power Subsystem package we provide 1 The APIs to access power subsystem 2 The utility and source code to monitor and set up power modes ignition status and power off time P S The following is Linux reference pictures about the utility file
21. 1 Pin 12 Pin 13 Pin 14 Logic High 3V 32V Logic Low 0V 1 5V 19 ECROSSER dc 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 Setup Power Setup PnP PCI Setup 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 lt Pg Up gt lt Pg Dn gt keys to select the value you want in each item 20 ECROSSER 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 Advanced Power FPnP PCI Peripheral PL Health Boot Exit Date mm dd yy RE ane IG Item Help Tine ihh mm 52 E ES 2 K EFC CF Menu Level gt IDE Channel 0 Slave None IDE Channel 2 Master None Press Enter to enter OSE she l None next page for detail IDE Channel 3 Master None hard drive settings Halt Un All But Keyboard Base Memory 239K Extended Memory 20858006 Total Memory 20869126 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
22. 8 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 t The number of packages to receive is indicated by the parameter count Before receiving finished the process will be temporarily halted Block VO if there is no incoming CAN package Return Value If this function receives the packages successfully it returns 0 If this function fails it returns not 0 46 ECROSSER 6 Syntax int CanSetBaudRate unsigned long Baud Description This function sets up the speed Baud rate of sending and receiving CAN packages Parameters The parameter Baud could be the unit is Kops 10 20 50 100 125 250 500 800 1000 The default speed is 0 Kbps Return Value This function returns 0 if it set the Baud rate successfully If this function fails it returns not 0 7 Syntax int CanGetBauRate unsigned long Baud Description This function get the speed Baud rate of sending and receiving CAN packages Parameters The parameter pointer Baud record the unit is Kbps 10 20 50 100 125 250 500 800 1000 Return Value This function returns 0 if it set the Baud rate successfully If this function fails it returns not 0 8 Syntax int setMask unsigned long mask int num int extd_flag Description This function setMask to can bus chip Parameters num 0 is set Masko 1 i
23. C INFO 65 ECROSSER BYTE PicTypel 31 BYTE PicModelf 41 BYTE PicMajorVersion BYTE PicMinorVersion IT PIG INFO Return Value If the function gets the firmware version successfully this function will return TRUE If any error the function returns FALSE 10 Syntax 11 BOOL PowerPic GetPicMode BYTE pMode Description The function gets the mode number at which the Power Subsystem is operating Parameters The parameter is a pointer which points to a variable of type BYTE The returned mode number is put at the memory which is pointed by parameter pMode Return Value If the function gets the PIC mode successfully this function will return TRUE If any error the function returns FALSE Syntax BOOL PowerPic SetDefaultValue Description The function restores the SoftOffDelay and HardOffDelay to the default value Parameters None Return Value If the function sets the default value successfully this function will return TRUE If any error the function returns FALSE 66 ECROSSER 4 4 Appendix Programming Guide Users have to modify the boot loader configuration to support COM6 Take the grub configuration file as an example Add 8250 nr uarts XX noirqdebug at the setting of kernel Here XX represents the number of COM ports the system will Support Because the power subsystem connects to main system via COM6 the XX must be greater or equal to 6 1 Modify the grub cont root linux
24. ECROSSER AR B6002 Board Fan less with Intel ATOM Pineview ICH8M User Manual ECROSSER Copyright 2013 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 The manufacturer Acrosser shall not 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 other product names mentioned herein are used for identification purposes only and may be trademarks and or registered trademarks of their respective companies ECROSSER Table of Contents 1 INTRODUCTION i GR EG Re ee Ee REG ER n GEE ee Ed 9 CCC AOI S is oon EER OE ee ER Ge GE OE 5 1 2 Package Contents esse see ee Ee ee ee RE kene eee ee ee ee ee ee tee 6 T3 Block NAN rn 6 2 MW INFORMA TION as eee Ger GRENSE GER ERENS EG EER EE Re An ee 1 2 1 Locations of Connector and Jumper Setting cccesccseeeeeeeeneeeees 8
25. N Message Format TPE DEFINE typedef char 18 typedef unsigned char u8 typedef short i16 typedef unsigned short ul typedef unsigned long u32 typedef int 132 typedef struct ER flags ER cob u32 id struct timeval timestamp 116 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 36 ECROSSER flags This field holds the information of message type Programmers can set the message type as 1 Standard Data Frame canmsg_tmsg 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 Extended Data Frame canmsg_t msg msg flags 1 flags field to 1 defines the msg as an extend data frame 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 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
26. PIO channels at the memory pointed by val The bit 0 of val shows the value of GPIO Input channel 0 The bit 1 of val shows the 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 lf GPIO Input channel 1 and channel 3 are both 1 unsigned char ch getInChLevel GPI1 GPI3 Sch 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 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 GPOO GPO1 GPO2 GPO3 to indicate the GPIO Output channels ll The parameter val indicate the value to be set to GPIO Output channel The acceptable values is limited to 0 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 3 Syntax i32 getOutchLevel i32 channel u8 val 95 ECROSSER Description Get the value of GPIO Output and put the value at val Parameters The parameter
27. a D SATA device connector 1 SATA device connector 2 3 3V CF card only and UDMA mode supported 14 ECROSSER 2 3 Power Subsystem The AR B6002 power subsystem converts the external DC input from vehicle to stable power rails for internal mother board peripherals and external I O The power subsystem can be configured by either an onboard switch SW1 or software to support various power off delay time There are 9 power modes available for your application 2 3 1 Definition 1 Ignition Ignition is a voltage input to command the power subsystem start a power on and off cycle It is treated as ON when voltage is above 1 1 Volts and OFF as voltage is below 1 1 Volts The maximum voltage input shall below 32 volts Remote Switch Remote switch input is an Open Close latch switch When you set the power mode as 5 6 or 7 it works with ignition to power on or off the system It will be treated as ON when the switch is CLOSED It will be treated as OFF when the switch is OPEN Soft Off Delay This is the delay time after ignition or remote switch is OFF till power subsystem sends a turn off command to the motherboard If ignition or remote switch is turned ON again during this period the power subsystem will cancel the OFF procedure and back to operating condition Hard Off Delay This is the delay time after power subsystem detects the OS has been shut down till the standby power is turned off 2 3 2 Power Mode Description
28. able can let user turn on and turn off system easier 2 5 Status LED The LED will flash a number of blink to state the status Mode 0 and 1 LED will be constant ON when power output is ON LED will be constant OFF when power output is off Mode 2 to 7 and mode 15 Smart ATX mode Each blink remains 500 milliseconds ON followed by a 500 ms OFF Each Cycle will have a 5 second OFF in between 0 constant ON Power Output runs normally Standby mode After power output is turned off until 5VSB is turned off Power soft off delay After ignition is turned off or remote switch is pressed until power output is turned off Battery voltage low 5 System on off fail When motherboard cannot turn on or turn off after retry 18 ECROSSER Mode 8 9 10 11 12 13 14 which means no function in current version Reserved 2 6 Fuse selection AR B6002 has external fuse holder user can swap fuse according to the application We provide 7 5A fuse for 12V car battery so that user s cable should be able to endure 7 5A at least 2 7 COM1 1 2 to choose RS 232 RS 485 RS 422 by jumper setting m JP JP8 JP9 setting to COM1 m JP10 JP11 JP12 setting to COM2 COM1 Type Selection COM2 Type Selection mi ml sen via 1 3 1 3 2 4 RS 485 RS 485 RS 422 RS 422 2 8 GPIO GPO Pin 1 Pin 2 Pin 3 Pin 4 Output voltage range 5V 30V Sink Current Maximum 500mA each channel Output Default set Low GPI Pin 1
29. acrosserinfo acrosser com Acrosser Taichung Office AE ries Em p F PUB 1625 126 26 12 6 No 162 Sec 4 Henan Rd Nantun Dist Taichung City 408 Taiwan R O C TEL 886 0 4 2251 0659 FAX 886 0 4 2254 6079 Acrosser China Subsidiary KAT R TAKA RI RIIAS lm tht HS ES IRIS AN Tt Wee BR bisht ARIAL Hm 518040 A East 2F 3th Building Crown Estate No 21 9 Tai Ran Road Che Gong Miao Futian Dist Shenzhen China Postal 518040 TEL 86 0755 8354221 0 2230 2240 2250 2260 FAX 86 0755 83700087 Acrosser Shanghai Office KAAR TREF Lara al Lei K FR 631 5 RIKKE 12E HKH 200085 12E Aile Building N0 631 Ling ling Road Xu hui Dist Shanghai China Postal 200085 TEL 86 021 64288853 FAX 86 021 64288854 Acrosser Beijing Office MIT R TAKAT Aba otal IR NER THE A9 S Hen FERo 703 EFER 100085 Room 2 703 Yipinshangceng No 9 Xisantiao Anning Zhuang Haidian Dist Beijing Postal 100085 TEL 86 010 82359009 FAX 86 010 82359003 Acrosser USA Subsidiary 11235 Knott Ave Suite A Cypress CA 90630 USA Toll Free 1 866 401 9463 TEL 1 714 903 1760 FAX 1 714 903 5629 info acrosserusa com 72
30. d 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 59 ECROSSER Return Value If the function sets the delay time successfully it will return 0 If any error the function returns 1 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 5 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 6 Syntax i32 setPowerOnMode u8 powerOnMode Description The function sets up the source of the boot
31. e on first Switch By user Ignition Remote Software By user setting By user setting Remote Switch Ignition Remote 5 seconds 1 minute i Ignition must be on first Switch 15 setting Switch control Low power protection 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 5 tolerance the Smart Mode will not start the power on procedure When Power smart function has ran in operation and the battery drops 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 5 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 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 17 ECROSSER STATUS SETTING 2 24V system 23 12V system Default i For 12V car battery For 24V car battery 2 4 Remote Switch We provide a remote switch cable with latch switch Use the remote switch c
32. ecific 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 ECROSSER 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 Main Advanced Fower Pnb PCI PEripheral PC Health Foot ETA EN Item Help Onboard Serial Fort 2 2Fe TRQ3 Onboard Serial Fort 3 3F8 IE011 Onboard Serial Fort 4 2F6 IRQ10 Menu Level b USE Device Setting ME aE ENE EEN b OnChip IDE Device Note The control EE 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 Option Description Onboard Serial Port 1 Serial Port 1 3F8 IRQ4 Onboard Serial Port 2 Serial Port 2 2F8 IRQ3 Onboard Serial Port 3 Serial Port 3 3E8 IRQ11 Onboard Serial Port 4 Serial Port 4 2E8 IRQ10 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 N A The integrated peripheral controller OnChip IDE DEVICE N A contains an IDE interface with support for two IDE channels 28 CROSSER 3 6 PC Health Setup This section shows the parameters in determining the PC Health Status
33. he 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 bMode Oxa5 boot up by the Ignition bMode 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 LIB h Windows Return Value If the function sets the power on mode successfully this function will return TRUE If any error the function returns FALSE 5 Syntax BOOL PowerPic GetSoftOffDelay Time int pSeconds 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 pSeconas is a pointer which points to an int variable The returned value is stored at this variable The unit of the returned value is in seconds Return Value If the function gets the soft off delay successfully this function will return TRUE If any error the function returns FALSE 6 Syntax BOOL PowerPic_GetHardOffDelayTime int pSeconds 64 ECROSSER 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 pSeconas is a pointer which points to an int variable The returned value is stored at this variable The unit of the returned value is in seconds
34. horized channels that will help you Does it support USB with power adapter hub Acrosser recommend to use standard USB hub 70 ECROSSER Appendix Technical Support Form We deeply appreciate you purchase Acrosser products Please find tech form doc file in our utility CD If you have any questions or problems about Acrosser products please fill in the following information We will answer your questions a s a p 1 Describe your info and system info A B C D E F Your company name Your contact info amp phone number Your e mail address Your company address Acrosser model name Acrosser Serial Number 2 Describe system configuration H nmn DO D CPU Memory size Storage e g HDD or CF or SSD Extra peripherals e g graphic card Operating system amp version e g Windows 7 embedded Special API or driver If yes please provide it for debug Running applications Other 3 Describe your problems or questions 4 Send the above info to one of the following Acrosser contact windows A B C D Acrosser local Sales Rep Acrosser authorized channels Acrosser e mail window http www acrosser com inguiry html Acrosser FAX number 886 2 29992887 71 ECROSSER Acrosser Headquarters Jr JE EE IER Ale 10F No 12 Lane 609 Sec 5 Chongsin Rd Sanchong District New Taipei City 241 Taiwan R O C TEL 886 0 2 2 9999 000 FAX 886 0 2 2999 2887
35. it to the caller as an unsigned integer 2 Syntax void setWitdTimer u8 val 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 watchdog 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 Under windows platform 1 Syntax int readWatchdog unsigned char pucValue Description This function read the value of the watchdog time counter and return it to the caller Parameters The parameter pucValue is an unsigned character pointer The function puts the values read from watchdog at the memory pointed by pucValue Return Value If the function gets the values successfully it returns 0 If any error it returns not zero 2 Syntax int startWatchdog unsigned char ucUnit unsigned char ucValue Description This function sets the watchdog timer register to the value ucValue and starts to count down The value could be 0 255 The unit is second Setting the timer register to 0 disables the watchdog function and stops the countdown Parameters The parameter ucUnit is the unit to set to watchdog timer register 0 indicates second And 1 indicates minute The parameter ucValue is the value to set to watchdog timer register The range is 0 gt 255 98
36. mp val Indicate the GPIO Output channel 0 getGPIOBitValue GPI BIT 6 amp val Indicate the GPIO Input channel 6 ll The parameter bValue is an bool pointer The function puts the values of the indicated GPIO channels at the memory pointed by bValue True indicates HI and false indicates LOW Return Value If the function gets the values successfully it returns 0 If any error it returns not zero 2 Syntax int setGPIOBitValue int iBitNumber bool bValue Description Set the value of GPIO Output according to the variable bValue Parameters The parameter channel indicates the GPIO Output pins to set Users can use the macros GPO BIT 0 GPO BIT 1 GPO BIT 2 or GPO BIT 3 to indicate the GPIO Output channels ll The parameter bValue indicate the value to be set to GPIO Output channel True indicates HI and false indicates LOW For example Setting the GPIO Output channel 2 to HI setGPIOBitValue GPO BIT 2 true Setting the GPIO Output channel 3 to LOW setGPIOBitValue GPO BIT 3 false Return Value If the function sets the values successfully it returns 0 If any error it returns not Zero Watchdog Under Linux platform 1 Syntax u8 getWidTimer void 57 ECROSSER 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
37. n number of the firmware I Piclnfo Picinto piclnfo getPicFwVer amp piclnfo printf c c n picinfo majorVersion piclnfo minorVersion Return Value If the version information is returned successfully the function returns 0 If any error it returns 1 12 Syntax 132 getPicMode u8 mode Description The function gets the mode number at which the Power Subsystem is operating 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 62 ECROSSER 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 Under windows platform 1 Syntax BOOL PowerPic GetlgnitionStatus BYTE pStatus 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 BYTE pointer pStatus If the returned status is 0xa5 the ignition is ON If the returned status is Ox5a the ignition is OFF There are macros of Ignition ON and Ignition OFF Return Value If the functi
38. nd macro definitions 41 ECROSSER 3 4 main c It is the source code of the utility Makefile On Windows platform 1 AR B6002 h The header file is 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 is 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 is dynamically linked library format This library is an aggregate library It includes APIs for CAN Bus GPIO Watchdog and Power Subsystem 4 2 3 Power Subsystem On Linux platform 1 pvvr acce c The source code of the APIs is for accessing the power subsystem pwr acce h This file includes the declarations of the APIs and macro definitions main c It is the source code of the utility Makefile On Windows platform 1 AR B6002 h The header file is 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 42 ECROSSER 2 AR B6002 Iib The API library is static library format This library is an aggregate library It includes APIs for CAN Bus GPIO Watchdog and Power Subsystem 3 AR B6002 dll The API library is dynamically linked library format This library is an aggregate library
39. ned on before pressing the remote switch B Power subsystem sends ON command to motherboard when Remote switch is on for more than 2 seconds C Power subsystem will ignore the status change of ignition after ON command is sent to motherboard for 3 minutes After this period the Power Module will start to check its status This can avoid an improper OFF process before the OS is completely booted D Power off is controlled by remote switch or ignition E Power subsystem will ignore the status change of ignition and remote switch during the OFF command is sent out and OS is completely shut down This will avoid an improper ON process before the motherboard is completely shot off F The system can be turned on again if the OFF procedure already finished and ignition or remote switch is ON again m Mode 15 Software programmable mode You can set the Soft Off Delay time Hard Off Delay time and Power ON source by software Application Program Interface Please refer to Chapter 4 for details m Others modes are reserved for test only 16 ECROSSER Mode description FF Hard OFF Power OFF one ar Power ON Control Delay delay Control By target board power By target board 0 ATX No No VER p VER button power button z some mn mm eme S l Remote Switch Ignition Remote 1 minute 5 minutes S Ignition must be on first Switch Remote Switch Ignition Remote 30 minutes 2 hours N Ignition must b
40. ng Baud Description This function get the speed Baud rate of sending and receiving CAN packages Parameters The parameter pointer Baud record the unit is Kops 10 20 50 100 125 250 500 800 1000 51 ECROSSER Return Value This function returns 0 if it set the Baud rate successfully If this function fails it returns not 0 8 Syntax int setMask unsigned long mask int num int extd flag Description This function set Mask to can bus chip Parameters num 0 is set Masko 1 is set Mask1 extd flag 1 is 29bit O is 11bit mask is mask value if set 11bit the maximum mask value is Ox7ff else the maximum mask value is Ox1FFFFFFF Return Value This function returns 0 if it set the Mask successfully If this function fails it returns not 0 9 Syntax void getMask unsigned long mask int num int extd flag Description This function get Mask from can bus chip Parameters num 0 is get Masko 1 is get Maski extd flag 1 is 29bit 0 is 11bit pointer mask is recored get mask value Return Value None 10 Syntax int setFilter unsigned long filter int num int extd_flag Description This function set Filter to can bus chip Parameters num 0 5 is set filter 0 5 extd flag 1 is 29bit 0 is 11bit filter is filter value if set 11bit the maximum filter value is Ox7Tf else the maximum filter value is Ox1FFFFFFF Return Value This function returns 0 if it set the Filter successfully If this f
41. ny message Return Value This function returns 0 if it get the Receive Mode successfully If this function fails it returns not 0 15 Syntax void lib close void Description This function is invoked to close library when you doesn t use this library Parameters None 49 ECROSSER Return Value None For Windows platform 1 Syntax int lib init void Description This function is used for library calling first It causes CAN Bus chipset at Configure mode The mode must change to Normal mode by the syntax int CanStart void calling before any CAN Bus operating Parameters None Return Value This function returns 0 library init successfully If this function fails it returns not 0 Syntax int CanStart void Description This function will resume from configure mode to normal mode for CAN Bus operating Parameters None Return Value This function returns 0 if it set the Baud rate successfully If this function fails it returns not 0 Syntax int CanStop void Description This function will stop CAN Bus message sending and receiving as well as into configure mode Parameters None Return Value This function returns 0 if it successfully If this function fails it returns not 0 Syntax void sendCanMessages canmsg t buffer u8 count Description This function sends out CAN packages over the CAN bus Parameters li there is more than one CAN package to send these CAN packages are 50
42. ode from can chipset 93 ECROSSER Parameters pointer Mode to record the Mode from can chipset Mode 0 is Normal Receive Receive all valid messages using either standard or extended identifiers that meet filter criteria Mode 1 is Receive only STD Receive only valid messages with standard identifiers that meet filter criteria Mode 2 is Receive only EXTD Receive only valid messages with extended identifiers that meet filter criteria Mode 3 is Receive any Message Turn mask filters off receive any message Return Value This function returns 0 if it get the Receive Mode successfully If this function fails it returns not 0 15 Syntax void lib close void Description This function is invoked to close library vvhen you doesnt use this library Parameters None Return Value None 4 3 2 GPIO and VVatchdog GPIO Under Linux platform 1 Syntax 132 getinChLevel i32 channel u8 val 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 GPI3 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 54 ECROSSER ll The parameter val is an unsigned character pointer The function puts the values of the indicated G
43. on gets the ignition status and put it at the memory pointed by the argument successfully this function will return TRUE If any error the function returns FALSE 2 Syntax BOOL PowerPic_SetSoftOffDelayTime int nTime int nTimeUnit 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 Parameters The parameter nTime is the value to set as delay interval The value of the parameter n Time ranges from 0 255 The parameter n TimeUnit is the unit of nTime Users can use macros TIME UNIT SECOND or TIME UNIT MINUTE to indicate unit Return Value If the function sets the soft off delay successfully this function will return TRUE If any error the function returns FALSE 3 Syntax BOOL PowerPic SetHardOffDelayTime int nTime int nTimeUnit 63 ECROSSER Description The Hard Off Delay is the interval between that the system is off and that the power 5VSB is off Parameters The parameter nTime is the value to set as delay interval The value of the parameter nTime ranges from 0 255 The parameter n TimeUnit is the unit of nTime Users can use macros TIME UNIT SECOND or TIME UNIT MINUTE to indicate unit Return Value If the function sets the hard off delay successfully this function will return TRUE If any error the function returns FALSE 4 Syntax BOOL PowerPic_SetPowerOnMode BYTE bMode Description T
44. ot 0 2 Syntax int CanStart void Description This function will resume from configure mode to normal mode for CAN Bus operating Parameters None 45 ECROSSER Return Value This function returns 0 if it set the Baud rate successfully If this function fails it returns not 0 3 Syntax int CanStop void Description This function will stop CAN Bus message sending and receiving as well as into configure mode Parameters None Return Value This function returns 0 if it successfully If this function fails it returns not 0 4 Syntax void 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 the parameter buffer The number of CAN packages to send is indicated by the parameter count If the resource of sending out the CAN package is temporarily unavailable the process will be temporarily halted Block I O until the resource is available again Return Value This function returns 0 if message sent successfully This function returns 1 if message sent failure This message is abandoned to send This function returns 2 if CAN bus linking failed 5 Syntax int getCanMessages canmsg t buffer u
45. oth 2 1 EDR support Class 2 Bluetooth operation with full 7 slave Piconet support Full Speed USB interface compliant with USB V1 1 and compatible with USB V2 0 Single onboard Antenna connector support Simple Pairing Version 2 1 EDR to advance its short range wireless technology compatible with USB V2 0 Full Speed 12Mbits s 9 3 WiFi Module Acrosser also certify suitable WiFi Module with our system With this module customers can connect with other WiFi network to download and upload data quickly 68 ECROSSER Features IEEE 802 11 b g n standards PCI Express half size Mini Card interface Up to 150 300 Mbps data rate WEP WPA WPA2 security MIMO technology Low power consumption for embedded system 5 4 3 5G Module When driving on the road our system can equip with 3 5G module which can connect wireless network via carrier base station Features Support GSM GPRS EDGE UMTS HSDPA PCI Express full size Mini Card interface 5 5 GPIO and CAN bus cable color zen Bak 8 White is vm gt 69 ECROSSER FAQ What kind of programming language has been verified with the bundled source codes Acrosser provides driver and library for develooment purposes Customers can refer to develop their own applications We have verified them with C C and QT programming language For other customized or special programming language please check with Acrosser local sales rep or aut
46. s set Mask1 extd flag 1 is 29bit 0 is 11bit mask is mask value if set 11bit the maximum mask value is Ox7ff else the maximum mask value is Ox1FFFFFFF Return Value This function returns 0 if it set the Mask successfully If this function fails it returns not 0 9 Syntax void getMask unsigned long mask int num int extd flag Description This function get Mask from can bus chip Parameters num 0 is get Masko 1 is get Maski 47 ECROSSER extd flag 1 is 29bit 0 is 11bit pointer mask is recored get mask value Return Value None 10 Syntax int setFilter unsigned long filter int num int extd_flag Description This function set Filter to can bus chip Parameters num 0 5 is set filter 0 5 extd flag 1 is 29bit 0 is 11bit filter is filter value if set 11bit the maximum filter value is 0x7ff else the maximum filter value is Ox1 FFFFFFF Return Value This function returns 0 if it set the Filter successfully If this function fails it returns not 0 11 Syntax void getFilter unsigned long filter int num int extd_flag Description This function get Filter from can bus chip Parameters num 0 5 is get filter 0 5 extd flag 1 is 29bit 0 is 11bit pointer filter is recored get filter value Return Value None 12 Syntax int CanChipReSet void Description This function to reset can bus chip It causes CAN Bus chipset at Configure mode The mode must change to Normal mode by the syntax in
47. t CanStart void calling before any CAN Bus operating Parameters None Return Value This function returns 0 if it reset the chipset successfully If this function fails it returns not 0 13 Syntax int setReciveMode unsigned long Mode 48 ECROSSER Description This function set Receive Mode Parameters Mode 0 is Normal Receive Receive all valid messages using either standard or extended identifiers that meet filter criteria Mode 1 is Receive only STD Receive only valid messages with standard identifiers that meet filter criteria Mode 2 is Receive only EXTD Receive only valid messages with extended identifiers that meet filter criteria Mode 3 is Receive any Message Turn mask filters off receive any message Return Value This function returns 0 if it set the Receive Mode successfully If this function fails it returns not 0 14 Syntax int getReciveMode unsigned long Mode Description This function get Receive Mode from can chipset Parameters pointer Mode to record the Mode from can chipset Mode 0 is Normal Receive Receive all valid messages using either standard or extended identifiers that meet filter criteria Mode 1 is Receive only STD Receive only valid messages with standard identifiers that meet filter criteria Mode 2 is Receive only EXTD Receive only valid messages with extended identifiers that meet filter criteria Mode 3 is Receive any Message Turn mask filters off receive a
48. tax i32 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 132 getBattVolt float volt Description The function gets the voltage reading of the battery 61 ECROSSER 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 Picinfo ver Description The function gets version information of Power Subsystem firmware Parameters The parameter is a pointer which points to a Piclnfo structure which consists of 9 unsigned characters Here is the definition of structure Piclnfo type struct u8 type 3 The type of the power subsystem u8 modeld The mode at which the power subsystem is operating u8 majorVersion Major version number of the firmware u8 minorVersion Minor versio
49. tion Procedure of CAN Bus Driver On Linux platform 33 ECROSSER 1 Change to the root user account Test RD System su Password lt lt lt key in admin password root RD System Test 2 Inthe driver directory execute the script install root RD System driver install 3 Make sure arb6002 is in the module list root RD System driver Ismod Module Size Used by arb6002 85504 0 vfat 8744 1 4 If the driver is no longer needed execute the script uninstall to unload the driver root ORD System On Windows platform 1 In the driver directory execute the setup exe program Note For Windows 7 and Vista please run this program as administration The following diagram is for your reference ere kuj Id gt driver v Se Organize v E Open Share with New folder e Fl Ww Favorites BR Desktop di 86 8 Downloads CanBus 29 2013 4 01 Sett f Recent Places Mi Setup 6 27 2012 3 36 PM Application 1 682 KB Open all Libraries Pei Run as administrator Documents Troubleshoot compatibility a Music i Share with gt ksi Pictures Restore previous versions S Videos Send to 18 Computer S Cut E Local Disk C z Copy es Removable Disk D Create shortcut tu Network Delete Rename Properties 34 ECROSSER The following diagram is copied for Windows XP for your reference i driver EE AR te HAJS TEIT Eg O 3 P
50. unction fails it returns not 0 11 Syntax void getFilter unsigned long filter int num int extd flag 52 ECROSSER Description This function get Filter from can bus chip Parameters num 0 5 is get filter 0 5 extd flag 1 is 29bit 0 is 11bit pointer filter is recored get filter value Return Value None 12 Syntax int CanChipReSet void Description This function to reset can bus chip It causes CAN Bus chipset at Configure mode The mode must change to Normal mode by the syntax int CanStart void calling before any CAN Bus operating Parameters None Return Value This function returns 0 if it reset the chipset successfully If this function fails it returns not 0 13 Syntax int setReciveMode unsigned long Mode Description This function set Receive Mode Parameters Mode 0 is Normal Receive Receive all valid messages using either standard or extended identifiers that meet filter criteria Mode 1 is Receive only STD Receive only valid messages with standard identifiers that meet filter criteria Mode 2 is Receive only EXTD Receive only valid messages with extended identifiers that meet filter criteria Mode 3 is Receive any Message Turn mask filters off receive any message Return Value This function returns 0 if it set the Receive Mode successfully If this function fails it returns not 0 14 Syntax int getReciveMode unsigned long Mode Description This function get Receive M
51. ure mode is the only mode where the following functions are available Baud Rate setting Filter Setting and Mask Setting 44 ECROSSER e Receive Mode setting Started to Normal Mode int CanStart void N Send message Library Initial int lib init void V Chip Reset int CanChipReSet void Started to Normal Mode int CanStart void Receive Message void sendCanMessages canmsg_t buffer u8 count Stopped to Configuration Mode int CanStop void At configuration mode void sendCanMessages canmsg_t buffer u8 count v I Stopped to Configuration Mode int CanStop void Set Baud Rate At configuration mode int CanSetBaudRate unsigned long Baud Set Mask and Filter Configuration Mode Baud Rate setting Filter Setting and Mask Setting Receive Mode setting int setMask unsigned long mask int num int extd flag Configuration Mode int setFilter unsigned long filter int num int extd flag j Set Receive Mode int setReciveMode unsigned long Mode Mode 0 Normal Receive 4 3 1 CAN Bus For Linux platform 1 Syntax int lib init void Description This function is used for library calling first It causes CAN Bus chipset at Configure mode The mode must change to Normal mode by the syntax int CanStart void calling before any CAN Bus operating Parameters None Return Value This function returns 0 library init successfully If this function fails it returns n
52. us system All PCI bus system on the system use INT thus all installed PCI cards must be set to this value Main Advanced Power Dr D DCT Peripheral FC Health Boot Exit Disabled Item Help Resources Controlled By Auto ESEL x IRQ Resources Menu Level gt Default is Disabled select Enabled to reset Extend Systen Configuration Data ESCI when you exit setup if you have installed a new addon and the system reconfiguration has caused such serious conflict that the 05 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 lt F1 gt key and the relevant information will be displayed Item Option Description Normally you leave this field 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 then the operating system cannot boot Reset Configuration Enabled Data Disabled 26 ECROSSER Resources Controlled By IRQ Resources Auto ESCD Manual N A 27 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 operating system such as Windows 95 If you set this field to manual then you may choose sp
53. 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 lt Esc gt to abort the selection and not enter a password To disable a password just press lt Enter gt 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 SOFTWARE INSTALLATION amp N PROGRAMMING GUIDE 4 1 Introduction 4 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 Receive the CAN packages via the CAN bus hardware interface set receive mode to normal STD only EXTD only or any Set mask Get mask Set filter Get filter In this CAN bus API package we provides 1 On Linux platform Linux driver module of CAN bus subsystem and the driver install uninstall scripts On Windows platform We provide device driver and install program of CAN bus subsystem 2 API header file API libraries is static library format and shared library format 3 CAN bus test utility Installa
Download Pdf Manuals
Related Search
Related Contents
Exhibitor Kit Bedienungsanleitung (PDF Format) Update on the Asia/Pacific Interim AMHS Database and AMS Hoshizaki DCM-300BAH User's Manual Manual de Gestão do Desktop TC553/852 Controller User`s Manual Integral 16GB microSDHC manual - Magazine Luiza Mode d`emploi de la casa Samsung HW-E450 Uživatelská přiručka Copyright © All rights reserved.
Failed to retrieve file