background image

A sample DIO program in C:
 ioaccess.c: IO access code for Lanner Platfomr Digital IO 

program
*********************************************************

**********************/

#include “../include/config.h”

#ifdef DJGPP

/* standard include file */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
/* For DOS DJGPP */
#include <dos.h>
#include <inlines/pc.h>

#else //DJGPP
/* For Linux */

#ifdef DIRECT_IO_ACCESS
/* For Linux direct io access code */
/* standard include file */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

#if defined(LINUX_ENV)
#include <sys/io.h>
#endif

#if defined(FreeBSD_ENV)
#include <machine/cpufunc.h>
#endif

#include <time.h>
#include <stdint.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
#define delay(x) usleep(x)
#endif

#ifdef MODULE

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/fs.h>
#include <asm/io.h>
#include <linux/delay.h>

#undef delay
#define delay(x) mdelay(x)
#undef fprintf
#define fprintf(S, A)  printk(A)

#endif //MODULE

#ifdef KLD_MODULE

#include <sys/types.h>
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/malloc.h>
#include <sys/kernel.h>
#include <sys/bus.h>
#include <sys/errno.h>

Summary of Contents for LVC-2000

Page 1: ...In Vehicle Computing Hardware Platforms for mobile applications LVC 2000 V1 3 User Manual Release Date 2022 03 03...

Page 2: ...or its use nor for any infringements upon the rights of third parties that may result from such use Acknowledgement Intel Pentium and Celeron are registered trademarks of Intel Corp Microsoft Windows...

Page 3: ...tegory 24 General minimal integrity Shock Operating Functional Test for Ground Equipment Refer to MIL STD 810G Method 516 6 Procedure I 40g 11ms B Non Operating Crash Hazard Shock Test for Ground Equi...

Page 4: ...mper Settings 16 Connectors 16 Chapter 3 Hardware Setup 21 Preparing the Hardware Installation 21 Disk Drive Installation 21 mSATA Card Installation 22 Wireless Module Installation 22 3G SIM Card Inst...

Page 5: ...65D x 52H mm the unit Processor Intel BayTrail E3845 1 91 GHz Optional for E3815 E3825 E3826 E2827 System Memory Module type DDR3L SO DIMM x1 up to 8GB BIOS AMI SPI Flash BIOS Storage mSATA SATA 1x mS...

Page 6: ...L STD 810G Method 516 6 Operating Temperature Range Extended 20 60 C with industrial components Package Contents Your package contains the following items LVC 2000 Fanless Embedded System with rubber...

Page 7: ...Chapter 2 System Components Mechanical Drawings Mechanical dimensions of the LVC 2000 with the system itself Unit mm...

Page 8: ...Mechanical dimensions of the LVC 2000 with anti vibration kit Unit mm...

Page 9: ...Mechanical dimensions of the LVC 2000 with wall mounting kit Unit mm...

Page 10: ...Block Diagram The MainBoard The block diagram depicts the relationships among the interfaces and modules on the motherboard...

Page 11: ...s activities or no hard disk present Power LED On The computer is on Off The computer is off F3 USB 3 0 Ports USB 3 0 type A connectors F4 CAN bus CAN bus connector for controller area network communi...

Page 12: ...ransmission Off The port is not linking SPEED Green Amber Amber The connection speed is 1000Mbps Green The connection speed is 100Mbps Off The connection speed is 10Mbps R3 HDMI Port A HDMI port which...

Page 13: ...s The following picture highlights the location of internal connectors and jumpers Refer to the table 3 2 Connector List for more details JKBMS1 JMCU1 MPCIE2 SATA1 CN1 JLPC1 SATAPWR1 MSATA1 USBF1 JCMO...

Page 14: ...nal Connectors and Jumpers backside The following picture highlights the location of internal connectors and jumpers on the backside of the board Refer to the table 3 2 Connector List for more details...

Page 15: ...ltiple I O Connectors PRJK1 3 Pin DC in Power Connector with Ignition Control USB2 USB 3 0 Connector VGA1 VGA Connector Table 3 2 Connector List for Internal Connectors Labels Function AUDIO1 Audio Pi...

Page 16: ...rogramming the MCU Pin Description Short 1 2 Normal default Short 2 3 Program MCU 1 1 2 3 4 1 Connectors VGA VGA1 Pin Signal Pin Signal Pin Signal 1 RED 6 GND 11 N A 2 GREEN 7 GND 12 DDC DAT 3 BLUE 8...

Page 17: ...GND 3 GND 4 VCC5_PS mSATA MSATA1 It complies with SATA 3 0Gbps interface PIN Description PIN Description 1 N A 30 SMB_CLK 2 V3P3S 31 mSATATXN 3 N A 32 SMB_DAT 4 GND 33 mSATATXP 5 N A 34 GND 6 N A 35 G...

Page 18: ...H_PCIE_RXN4 24 PCIE_PCIE_VCC3AUX 25 PCH_PCIE_RXP4 26 GND 27 GND 28 V1P5_MPCIE 29 GND 30 SMBCLK_RESUME 31 PCH_PCIE_TXN4 32 SMBDATA_RESUME 33 PCH_PCIE_TXP4 34 GND 35 GND 36 PCH_USB_N9 37 GND 38 PCH_USB_...

Page 19: ...2A in maximum DO2 Keyboard Mouse connector JKBMS1 Low Pin Count JLPC1 Pin Description Pin Description 1 33MHz CLK 2 LAD1 3 RESET 4 LAD0 5 FRAME 6 VCC 3 3 7 LAD3 8 GND 9 LAD2 10 GND Pin No Pin Name 1...

Page 20: ...in Connector 6 7 8 9 1 2 3 4 5 Pin No Pin Name 1 J1850 J1708 2 GND_CAN 3 CAN_H J1939 4 K_LINE 5 CAN_L J1939 6 J1850 J1708 7 J1850 J1708 8 J1850 J1708 9 BAT_12V_24V Pin No Pin Name 1 MIC_IN_L 2 MIC_IN_...

Page 21: ...oved Unpower the LVC 2000 and remove the power cord 1 Remove 4 threaded screws from the bottom to take 2 off the bottom cover Open the cover 3 Disk Drive Installation The system can accommodate one Se...

Page 22: ...ign the wireless module s cutout with the Mini PCIe 1 slot notch Insert the wireless module into the connector 2 diagonally Push the other end of the wireless module to be 3 tightened with the latch T...

Page 23: ...attery The DC power in connector comes with a 3 pin terminal block for its Phoenix contact This power socket can only accept the power supply with the right pin contact so be cautious when inserting p...

Page 24: ...tion function with selector 1 and selector 2 jumper respectively of SW1 Refer to Chapter 3 Board Layout For power on and power off delay timer 2 parameter refer to Appendix A Using the Ignition System...

Page 25: ...er to the flow chart in Chapter 4 Serial Port Select the serial communication port for the ISM Choose COM5 D1 D2 Wakeup Digital input triggering to enable automatic wake up function Select this option...

Page 26: ...G sensor GPS and Digital I O functions install the the L_IO driver which is the library and driver needed for Lanner General Purpose Input Output interface or functions To install the L_IO driver Rest...

Page 27: ...e hardware Manually 1 Choose Show all device and click Next 2 Click HaveDisk to locate the L_IO inf file 3 Click HaveDisk to locate the L_IO inf file 4 Select the L_IO inf 5 Select OK to confirm with...

Page 28: ...n program To verify the GPIO driver installation do the following steps Right click on the My Computer icon and then select 1 Properties form the menu Click the Hardware tab then click the Device Mana...

Page 29: ...if defined LINUX_ENV include sys io h endif if defined FreeBSD_ENV include machine cpufunc h endif include time h include stdint h include fcntl h include errno h include string h define delay x uslee...

Page 30: ...outportb INDEX_PORT 0xAA return unsigned char read_SIO_reg int LDN int reg outportb INDEX_PORT 0x07 LDN register delay 5 outportb DATA_PORT LDN delay 5 outportb INDEX_PORT reg delay 5 return inportb...

Page 31: ...char out_value enter_SIO_config write_SIO_reg 0x6 0xf1 read_SIO_reg 0x6 0xf1 0xF0 out_value exit_SIO_config return unsigned int dio_get_input void unsigned int tmp 0x00 enter_SIO_config tmp read_SIO_...

Page 32: ...Bm Reacquisition 160dBm Cold Start without aiding 148 dBm Hot Start 157 dBm Maximum Navigation update rate 5Hz Horizontal position ac curach CEP 50 24 hours static 130dBm SEP 3 5m GPS 2 5m SBAS 2 0m C...

Page 33: ...Specify the following communication parameters Bits per Second 9600 Data Bits 8 Parity None Stop Bit 1 Flow Control None The hyper terminal should display GPS data 9600...

Page 34: ...values from 0 255 The system will reboot automatically according to the time out you set You can write your own program by modifying the source code F81865_Test cpp The index address is 2EH F81865_Te...

Page 35: ...r szBuf int nLen strlen szBuf for int i 0 i nLen i if strchr 01234567890ABCDEFabcdef szBuf i throw Wrong argument n Common GPIO output function definition define GPIO_OUT a b c int a int argc char arg...

Page 36: ...printf DIO_IN d d n nPort ret return ret Milli second delay int mSleep int argc char argv CHECK_ARGC 3 CheckNumeric argv 2 Sleep atoi argv 2 return 0 Watchdog int mWatchDog int argc char argv if argc...

Page 37: ...argc char argv try The total argument allowed int num sizeof c2f sizeof c2f 0 Too few argument if argc 2 RETMSG 1 PARAMETER_ HELP Find the match argument and execute the mapping function for int i 0 i...

Page 38: ...se The following conditions are excluded from this 5 warranty Improper or inadequate maintenance by the customer Unauthorized modification misuse or reversed engineering of the product Operation outsi...

Page 39: ......

Reviews: