AUTOSAR - 标准文档下载

时间:2023-03-09 06:38:17
AUTOSAR - 标准文档下载

https://mp.weixin.qq.com/s/IfJ3BmyTBbSIqyD30BqFbA

官网

https://www.autosar.org/

AUTOSAR - 标准文档下载

文档分类

按功能分

AUTOSAR - 标准文档下载

按类型分

AUTOSAR - 标准文档下载

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.

AUTOSAR - 标准文档下载

AUTOSAR - 标准文档下载

AUTOSAR - 标准文档下载

下载方法

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

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

AUTOSAR - 标准文档下载

这里可以点击分类下载

2. 用Document Search搜索下载。

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

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

AUTOSAR - 标准文档下载

右击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_KEYWORD=fileadmin

fetch_page()
{
local u=$
local f=$ wget -O $f $u
} fetch_pdf_of_page()
{
local f=$ for u in $(cat $f | grep $PDF_KEYWORD | tr ' ' '\n' | grep $PDF_KEYWORD | cut -d '=' -f | xargs echo);
do
t=$(basename $u)
[ -e $t ] && continue
wget -T https://www.autosar.org/$u &
done
} fetch_all_pages()
{
local url=$
local num=$
local dst=$
for p in $(seq $num);
do
[ -e page_$p ] && continue
fetch_page $url$p page_$p
fetch_pdf_of_page page_$p
done
} # classic
DST=classic/-
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]=" # adaptive
#DST=adaptive/-
#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=" # foundation
#DST=foundation/-
#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=" # tests
#DST=tests/-
#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="