Giter VIP home page Giter VIP logo

fengtanshou / as Goto Github PK

View Code? Open in Web Editor NEW

This project forked from autoas/as

0.0 2.0 0.0 15.09 MB

automotive software(OSEK & AUTOSAR) and its tool-chain

Home Page: http://parai.github.io/as/

Emacs Lisp 0.03% GDB 0.01% Batchfile 0.01% Python 5.29% C 81.23% C++ 7.62% Makefile 1.35% Objective-C 0.87% Assembly 2.36% Pascal 0.01% PHP 0.60% Perl 0.03% Roff 0.02% Shell 0.04% Lex 0.04% Yacc 0.09% Lua 0.35% QMake 0.01% Java 0.01% QML 0.02%

as's Introduction

as

automotive software and its tool-chain

Build Status

why this repository

Because I am not powerful so I decided to develop small but smart part of automotive software based on open source, and create a general AUTOSAR & Automotive Software study environment.

As below picture shows, it was an virtual cluster based on AUTOSAR and can be simulated on Windows and Linux.

ascore posix vic on AUTOSAR

Key Point

1. Integrated ArcCore AUTOSAR 3.1 BSW

  • Communication: Can CanIf PduR Com SoAd
  • Diagnostic: CanTp Dcm DoIP Dem
  • System: EcuM SchM
  • Memory: Fls Fee Eep Ea NvM MemIf

2. OS

3. BSW configuration tool

This GUI tool is the one from OpenSAR which is also developed by me, the GUI can be automatically created from xml.

as configure tool

4. AUTOSAR & LINUX communication

5. Lua & Python Integrated

  • support CAN device by lascanlib or pyas: CANcaseXL, PeakCAN, SocketCAN, ZLG USBCAN,also provide a kind of python library for CAN access.
  • support miscellaneous device by lasdevlib with the smae API interface "open/read/write/ioctl/close": rs232
  • a powerful python as.one.py tool: Dcm Xcp Bootloader and others.

as.one.py bootloader

6. aslinux simulation environment on QEMU

  • Now use one makefile to bring up the QEMU AGL environment.
  • very simple and easy, with one single Makefile to build out the kernel and the rootfs, and a shell script to kick off the qemu virtual machine to execute that kernel and mount that rootfs.(for details check my github.io page on category linux)
  • aslinux build step
git clone https://github.com/parai/as.git
cd $(patch-to)/as/release/aslinux
mkdir build
cd build
ln -fs ../script/vexpress-ca9.mk Makefile
ln -fs ../script/run-vexpress.sh run.sh
make all
./run.sh
# if aslua want to be used
cd $(path-to)/as/release/aslua && make 31 && make 33 
cp out/arm.exe $(path-to)/as/release/aslinux/build/out/rootfs/usr/bin/aslua -v
cp /usr/arm-linux-gnueabi/lib/*.so* $(path-to)/as/release/aslinux/build/out/rootfs/lib -v
# then the sdcard need to be rebuilt
cd $(path-to)/as/release/aslinux/build && make sdcard

7. Other 3rd part package

8. Setup Environment

  • check the asenv repository for win32 development

  • for windows x64, follow below steps

8.1 install python27 64bit as C:\Python27

8.2 install scons 3.0.0 zip for python27

cd scons-3.0.0
C:\Python27\python.exe setup.py install

8.3 install Anaconda3 64bit as C:\Anaconda3

8.4 install msys2 x86_64 as C:\msys64

8.5 then run below commands in cmd

set PATH=C:\Python27;C:\Anaconda3\Scripts;C:\msys64\usr\bin;C:\msys64\mingw64\bin;%PATH%
pacman -Sy
pacman -S unzip wget git mingw-w64-x86_64-gcc mingw-w64-x86_64-glib2 mingw-w64-x86_64-gtk3
pacman -S ncurses-devel gperf scons
pacman -Syuu
wget https://pypi.python.org/packages/1f/3b/ee6f354bcb1e28a7cd735be98f39ecf80554948284b41e9f7965951befa6/pyserial-3.2.1.tar.gz#md5=7142a421c8b35d2dac6c47c254db023d
tar xf pyserial-3.2.1.tar.gz
cd pyserial-3.2.1
C:/Anaconda3/python setup.py install

9. Build

# in the cmd of aslua
make aslua
# in the cmd of asboot or ascore
scons # build, it will hint you the boards supported
scons run
scons -c # clean
# in the cmd of as.one.py
python main.py

as's People

Contributors

parai avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.