AUTOSAR - 标准文档下载

 官网

https://www.autosar.org/

  

文档分类

按功能分

 

按类型分

 

CLASSIC PLATFORM

The AUTOSAR Classic Platform architecture distinguishes on the highest abstraction level between three software layers which run on a microcontroller: application, runtime environment (RTE) and basic software (BSW).

  • The application software layer is mostly hardware independent.
  • Communication between software components and access to BSW via RTE.
  • The RTE represents the full interface for applications.
  • The BSW is divided in three major layers and complex drivers:
    • Services, ECU (Electronic Control Unit) abstraction and microcontroller abstraction.
  • Services are divided furthermore into functional groups representing the infrastructure for system, memory and communication services.

 

下载方法

  1. 按提供的按钮单独下载每个文件夹。

    https://www.autosar.org/standards/classic-platform/classic-platform-431/

这里可以点击分类下载

2. 用Document Search搜索下载。

https://www.autosar.org/nc/document-search/

 3. 利用Document Search使用脚本下载。

 

右击Show more,复制链接地址:

https://www.autosar.org/nc/document-search/?tx_sysgsearch_pi1%5Bcategory%5D%5B25%5D=25&tx_sysgsearch_pi1%5Bquery%5D=&tx_sysgsearch_pi1%5Bwidget%5D=1&tx_sysgsearch_pi1%5Bpage%5D=2

解码后为:

https://www.autosar.org/nc/document-search/?tx_sysgsearch_pi1[category][25]=25&tx_sysgsearch_pi1[query]=&tx_sysgsearch_pi1[widget]=1&tx_sysgsearch_pi1[page]=2

其中最后一个2指搜索结果第二页。

观察发现每页显示10条结果,CLASSIC PLATFORM共有221条结果,也就是总共23页。我们可以通过脚本来批量下载这些结果。

#!/bin/bash -x

PDF_KEYWORK=fileadmin

fetch_page()
{
    local u=$1
    local f=$2
    
    wget -O $f $u
}


fetch_pdf_of_page()
{
    local f=$1

    for u in $(cat $f | grep $PDF_KEYWORK | tr ' ' '\n' | grep $PDF_KEYWORK | cut -d '=' -f 2 | xargs echo);
    do
        t=$(basename $u)
        [ -e $t ] && continue
        wget -T 3600 https://www.autosar.org/$u &
    done
}


fetch_all_pages()
{
    local url=$1
    local num=$2
    local dst=$3
    for p in $(seq 1 $num);
    do
        [ -e page_$p ] && continue
        fetch_page $url$p page_$p
        fetch_pdf_of_page page_$p
    done
}

# classic
DST=classic/4-3
mkdir -p $DST
cd $DST && fetch_all_pages "https://www.autosar.org/nc/weiteres/search/?tx_sysgsearch_pi1[category][25]=25&amp%3Btx_sysgsearch_pi1[tags][0]=&tx_sysgsearch_pi1[widget]=1&tx_sysgsearch_pi1[page]=" 23

# adaptive
#DST=adaptive/17-10
#mkdir -p $DST
#cd $DST && fetch_all_pages "https://www.autosar.org/nc/weiteres/search/?tx_sysgsearch_pi1%5Bcategory%5D%5B118%5D=118&amp%3Btx_sysgsearch_pi1%5Btags%5D%5B0%5D=&tx_sysgsearch_pi1%5Bwidget%5D=1&tx_sysgsearch_pi1%5Bpage%5D=" 4

# foundation
#DST=foundation/1-3
#mkdir -p $DST
#cd $DST && fetch_all_pages "https://www.autosar.org/nc/document-search/?tx_sysgsearch_pi1%5Bcategory%5D%5B120%5D=120&amp%3Btx_sysgsearch_pi1%5Bquery%5D=&tx_sysgsearch_pi1%5Bwidget%5D=1&tx_sysgsearch_pi1%5Bpage%5D=" 2

# tests
#DST=tests/1-2
#mkdir -p $DST
#cd $DST && fetch_all_pages "https://www.autosar.org/nc/weiteres/search/?tx_sysgsearch_pi1%5Bcategory%5D%5B32%5D=32&amp%3Btx_sysgsearch_pi1%5Btags%5D%5B0%5D=&tx_sysgsearch_pi1%5Bwidget%5D=1&tx_sysgsearch_pi1%5Bpage%5D=" 2

猜你喜欢

转载自www.cnblogs.com/wjcdx/p/8995659.html
今日推荐