分类 V2X 下的文章

“车联网(Vehicle-to-everything):汽车和其他相关设备的通讯。车联网(Vehicle-to-everything)简称V2X,是将汽车和其他车辆或是可能影响汽车的设备所进行的通信。车联网是包括其他种类通信的汽车通信系统,其他的通信有V2I(汽车对基础设施、汽车对道路系统)、V2N(汽车对网络)、V2V(汽车对汽车)、V2P(汽车对行人)、V2D(汽车对设备)。”

asn_set_empty

/*
 * Free the contents of the set, do not free the set itself.
 */

asn_set_empty用法:

asn_set_empty(&pv2x->content->choice.signedData->signer.choice.certificate);

有的地方使用ASN_STRUCT_FREE_CONTENTS_ONLY,但好像还是有些差异。

/*
 * Free memory used by the members of the structure without freeing
 * the structure pointer itself.
 * (Retaining the pointer may be useful in case the structure is allocated
 *  statically or arranged on the stack, yet its elements are dynamic.)
 * AVOID using it in the application code;
 * Use a safer ASN_STRUCT_RESET() instead.
 */
#define ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF, ptr) \
    (asn_DEF).op->free_struct(&(asn_DEF), (ptr), ASFM_FREE_UNDERLYING)

测试编号:TC_SPDU_TS_BV_16
测试项目:DUT 签发 SPDU 测试
测试目的:验证 DUT 发送的证书申请请求信息是否正确
预置条件:
1) DUT 已加电启动;
2) DUT 已与 GNSS 完成同步;
3) DUT 或测试系统无线信号捕获工具范围内没有其他同类型设备;
4) DUT 已预置了测试系统提供的安全证书及可信根证书列表消息;
5) DUT 除接收测试系统发出的相关指令外,DUT 不会主动发送消息。
测试结构:参见图 1 测试系统架构
测试步骤:
步骤1:配置DUT发送证书申请请求消息;
步骤2:验证DUT发送的证书申请请求信息是否正确。
预期结果:
步骤2中,证书申请请求信息满足如下要求:
➢ version = 1;
➢ 使用证书的私钥可以将消息解密为SignedCertificateRequest;
➢ SignedCertificateRequest的hash算法为sm3;
➢ SignedCertificateRequest.tbsrequest.content的类型为ee-ra;
➢ eeRaCertRequest中证书的类型为explicit;

信息测试XML文件:

<EeRaCertRequestPlainSpdu>
    <protocolVersion>3</protocolVersion>
    <content>
        <signedCertificateRequest>
            02 01 87 80 40 01 21 07 F4 1D 00 50 83 00 00 00 
            00 00 21 07 F4 1D 84 00 A8 83 01 01 80 00 9C 01 
            05 00 01 6F 00 01 70 00 01 71 00 01 72 00 02 0E 
            28 80 84 21 82 00 01 00 00 00 00 00 00 00 00 00 
            00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
            00 00 00 00 00 80 81 10 00 01 00 00 00 00 00 00 
            00 00 00 00 00 00 00 00 01 82 21 82 00 01 00 00 
            00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
            00 00 00 00 00 00 00 00 00 00 00 00 81 10 01 00 
            00 00 00 00 00 00 00 00 00 00 00 00 00 00 81 01 
            01 80 03 00 81 02 15 81 0A 4E 65 75 73 6F 66 74 
            2E 63 6F 00 00 00 00 00 00 00 00 00 86 00 1E 01 
            01 00 02 0E 2B 01 01 80 80 01 02 80 01 6F 81 80 
            01 70 81 01 00 01 82 21 82 6B 27 AB E1 21 6B 84 
            13 40 13 9D 5E 6A 77 CC A1 64 17 B7 FB A0 96 F8 
            84 13 82 1B 94 4A 91 FD 18 80 84 21 83 8F FA 8C 
            04 25 73 BB EF DB 3A D1 0B 38 5C BD 9D DF 4A 54 
            01 95 91 53 69 82 30 FD 9C A8 3E 66 3D 84 40 93 
            7B B4 0B BF 7A 68 17 A5 CA E0 9A 60 9B 52 07 B3 
            12 CA 65 94 AC 99 1E 0A 62 19 75 63 00 4B DF F9 
            4D ED 69 79 AF E6 9C 5C 28 7F B5 2A E9 2E 7C D0 
            90 65 59 C1 0A BF 16 4E C8 61 D3 08 44 1E E8 84 
            40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
            00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
            00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
            00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
            00
        </signedCertificateRequest>
    </content>
</EeRaCertRequestPlainSpdu>

其中SignedCertificateRequest 数据为

<SignedCertificateRequest>
    <hashId><sm3/></hashId>
    <tbsRequest>
        <version>1</version>
        <content>
            <ee-ra>
                <eeRaCertRequest>
                    <version>1</version>
                    <generationTime>554169373</generationTime>
                    <type><explicit/></type>
                    <tbsCert>
                        <id>
                            <none></none>
                        </id>
                        <cracaId>00 00 00</cracaId>
                        <crlSeries>0</crlSeries>
                        <validityPeriod>
                            <start>554169373</start>
                            <duration>
                                <hours>168</hours>
                            </duration>
                        </validityPeriod>
                        <region>
                            <identifiedRegion>
                                    <countryOnly>156</countryOnly>
                                
                            </identifiedRegion>
                        </region>
                        <appPermissions>
                            <AidSsp>
                                <aid>111</aid>
                            </AidSsp>
                            <AidSsp>
                                <aid>112</aid>
                            </AidSsp>
                            <AidSsp>
                                <aid>113</aid>
                            </AidSsp>
                            <AidSsp>
                                <aid>114</aid>
                            </AidSsp>
                            <AidSsp>
                                <aid>3624</aid>
                            </AidSsp>
                        </appPermissions>
                        <verifyKeyIndicator>
                            <verificationKey>
                                <ecsigSm2>
                                    <compressed-y-0>
                                        00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
                                        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                                    </compressed-y-0>
                                </ecsigSm2>
                            </verificationKey>
                        </verifyKeyIndicator>
                    </tbsCert>
                    <additionalParams>
                        <original>
                            <signingExpansion>
                                <sm4>00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00</sm4>
                            </signingExpansion>
                            <encryptionKey>
                                <supportedSymmAlg><sm4Ccm/></supportedSymmAlg>
                                <publicKey>
                                    <ecencSm2>
                                        <compressed-y-0>
                                            00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
                                            00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                                        </compressed-y-0>
                                    </ecencSm2>
                                </publicKey>
                            </encryptionKey>
                            <encryptionExpansion>
                                <sm4>01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00</sm4>
                            </encryptionExpansion>
                        </original>
                    </additionalParams>
                </eeRaCertRequest>
            </ee-ra>
        </content>
    </tbsRequest>
    <signer>
        <certificate>
            <Certificate>
                <version>3</version>
                <type><explicit/></type>
                <issuer>
                    <self><sm3/></self>
                </issuer>
                <toBeSigned>
                    <id>
                        <name>Neusoft.co</name>
                    </id>
                    <cracaId>00 00 00</cracaId>
                    <crlSeries>0</crlSeries>
                    <validityPeriod>
                        <start>0</start>
                        <duration>
                            <years>30</years>
                        </duration>
                    </validityPeriod>
                    <appPermissions>
                        <AidSsp>
                            <aid>3627</aid>
                        </AidSsp>
                    </appPermissions>
                    <certRequestPermissions>
                        <AidGroupPermissions>
                            <subjectPermissions>
                                <explicit>
                                    <AidSspRange>
                                        <aid>111</aid>
                                        <sspRange>
                                            <all></all>
                                        </sspRange>
                                    </AidSspRange>
                                    <AidSspRange>
                                        <aid>112</aid>
                                        <sspRange>
                                            <all></all>
                                        </sspRange>
                                    </AidSspRange>
                                </explicit>
                            </subjectPermissions>
                            <minChainLength>0</minChainLength>
                            <chainLengthRange>0</chainLengthRange>
                        </AidGroupPermissions>
                    </certRequestPermissions>
                    <encryptionKey>
                        <supportedSymmAlg><sm4Ccm/></supportedSymmAlg>
                        <publicKey>
                            <ecencSm2>
                                <compressed-y-0>
                                    6B 27 AB E1 21 6B 84 13 40 13 9D 5E 6A 77 CC A1 
                                    64 17 B7 FB A0 96 F8 84 13 82 1B 94 4A 91 FD 18
                                </compressed-y-0>
                            </ecencSm2>
                        </publicKey>
                    </encryptionKey>
                    <verifyKeyIndicator>
                        <verificationKey>
                            <ecsigSm2>
                                <compressed-y-1>
                                    8F FA 8C 04 25 73 BB EF DB 3A D1 0B 38 5C BD 9D 
                                    DF 4A 54 01 95 91 53 69 82 30 FD 9C A8 3E 66 3D
                                </compressed-y-1>
                            </ecsigSm2>
                        </verificationKey>
                    </verifyKeyIndicator>
                </toBeSigned>
                <signature>
                    <sm2Signature>
                        <rSig>
                            93 7B B4 0B BF 7A 68 17 A5 CA E0 9A 60 9B 52 07 
                            B3 12 CA 65 94 AC 99 1E 0A 62 19 75 63 00 4B DF
                        </rSig>
                        <sSig>
                            F9 4D ED 69 79 AF E6 9C 5C 28 7F B5 2A E9 2E 7C 
                            D0 90 65 59 C1 0A BF 16 4E C8 61 D3 08 44 1E E8
                        </sSig>
                    </sm2Signature>
                </signature>
            </Certificate>
        </certificate>
    </signer>
    <signature>
        <sm2Signature>
            <rSig>
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
            </rSig>
            <sSig>
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
                00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
            </sSig>
        </sm2Signature>
    </signature>
</SignedCertificateRequest>

测试编号:TC_SPDU_TS_BV_17
测试项目:DUT 签发 SPDU 测试
测试目的:验证 DUT 发送的证书下载请求信息是否正确
预置条件:
1) DUT 已加电启动;
2) DUT 已与 GNSS 完成同步;
3) DUT 或测试系统无线信号捕获工具范围内没有其他同类型设备;
4) DUT 已预置了测试系统提供的安全证书及可信根证书列表消息;
5) DUT 除接收测试系统发出的相关指令外,DUT 不会主动发送消息。
测试结构:参见图 1 测试系统架构
测试步骤:
步骤1:配置DUT发送证书下载请求消息;
步骤2:验证DUT发送的证书下载请求信息是否正确。
预期结果:
步骤2中,证书下载请求信息满足如下要求:
➢ version = 1;
➢ 使用证书的私钥可以将消息解密为SignedCertificateRequest;
➢ SignedCertificateRequest的hash算法为sm3;
➢ SignedCertificateRequest.tbsrequest.content的类型为ee-ra。

证书下载信息测试XML文件

<EeRaDownloadRequestPlainSpdu>
    <protocolVersion>3</protocolVersion>
    <content>
        <signedData>
            <hashId><sm3/></hashId>
            <tbsData>
                <payload>
                    <data>
                        <protocolVersion>3</protocolVersion>
                        <content>
                            <unsecuredData>
                                70 63 5F 64 6F 77 6E 2E 74 78 74 00 00 00 00 00 
                                00 00 00 00
                            </unsecuredData>
                        </content>
                    </data>
                </payload>
                <headerInfo>
                    <aid>3267</aid>
                    <generationTime>0</generationTime>
                </headerInfo>
            </tbsData>
            <signer>
                <certificate>
                    <Certificate>
                        <version>3</version>
                        <type><explicit/></type>
                        <issuer>
                            <self><sm3/></self>
                        </issuer>
                        <toBeSigned>
                            <id>
                                <name>Neusoft.co</name>
                            </id>
                            <cracaId>00 00 00</cracaId>
                            <crlSeries>0</crlSeries>
                            <validityPeriod>
                                <start>0</start>
                                <duration>
                                    <years>30</years>
                                </duration>
                            </validityPeriod>
                            <appPermissions>
                                <AidSsp>
                                    <aid>3627</aid>
                                </AidSsp>
                            </appPermissions>
                            <certRequestPermissions>
                                <AidGroupPermissions>
                                    <subjectPermissions>
                                        <explicit>
                                            <AidSspRange>
                                                <aid>111</aid>
                                                <sspRange>
                                                    <all></all>
                                                </sspRange>
                                            </AidSspRange>
                                            <AidSspRange>
                                                <aid>112</aid>
                                                <sspRange>
                                                    <all></all>
                                                </sspRange>
                                            </AidSspRange>
                                        </explicit>
                                    </subjectPermissions>
                                    <minChainLength>0</minChainLength>
                                    <chainLengthRange>0</chainLengthRange>
                                </AidGroupPermissions>
                            </certRequestPermissions>
                            <encryptionKey>
                                <supportedSymmAlg><sm4Ccm/></supportedSymmAlg>
                                <publicKey>
                                    <ecencSm2>
                                        <compressed-y-0>
                                            6B 27 AB E1 21 6B 84 13 40 13 9D 5E 6A 77 CC A1 
                                            64 17 B7 FB A0 96 F8 84 13 82 1B 94 4A 91 FD 18
                                        </compressed-y-0>
                                    </ecencSm2>
                                </publicKey>
                            </encryptionKey>
                            <verifyKeyIndicator>
                                <verificationKey>
                                    <ecsigSm2>
                                        <compressed-y-1>
                                            8F FA 8C 04 25 73 BB EF DB 3A D1 0B 38 5C BD 9D 
                                            DF 4A 54 01 95 91 53 69 82 30 FD 9C A8 3E 66 3D
                                        </compressed-y-1>
                                    </ecsigSm2>
                                </verificationKey>
                            </verifyKeyIndicator>
                        </toBeSigned>
                        <signature>
                            <sm2Signature>
                                <rSig>
                                    93 7B B4 0B BF 7A 68 17 A5 CA E0 9A 60 9B 52 07 
                                    B3 12 CA 65 94 AC 99 1E 0A 62 19 75 63 00 4B DF
                                </rSig>
                                <sSig>
                                    F9 4D ED 69 79 AF E6 9C 5C 28 7F B5 2A E9 2E 7C 
                                    D0 90 65 59 C1 0A BF 16 4E C8 61 D3 08 44 1E E8
                                </sSig>
                            </sm2Signature>
                        </signature>
                    </Certificate>
                </certificate>
            </signer>
            <signature>
                <sm2Signature>
                    <rSig>
                        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
                        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                    </rSig>
                    <sSig>
                        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
                        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                    </sSig>
                </sm2Signature>
            </signature>
        </signedData>
    </content>
</EeRaDownloadRequestPlainSpdu>

国家标准. 道路交通标志和标线. 第2部分:道路交通标志. GB 5768.2-2009. 中国标准出版社出版发行. 北京复兴门外三里河北街16号. 邮政编码:100045

http://cdjg.chengdu.gov.cn/cdjg/c113997//2020-07/17/c070a56114554083839b110a7804e39d/files/0f6fb5be41904e239585d3982d6b2217.pdf
国家标准《道路交通标志和标线 第2部分:道路交通标志》由348(交通运输部)归口上报及执行,主管部门为交通运输部。

主要起草单位 交通部公路科学研究院 。

主要起草人 何勇 、姜明 、高海龙等 。

道路交通标志和标线 第2部分:道路交通标志
Road traffic signs and markings - Part 2: Road traffic signs

中文标准名称:道路交通信息服务交通事件分类与编码.
英文标准名称:Road traffic information service - Traffic event classification and coding.

GBT 29100-2012 道路交通信息服务 交通事件分类与编码.pdf

这个在网上好像没有看到pdf版本。

标准号GB/T 29100-2012
发布日期2012-12-31
实施日期2013-07-01
中国标准分类号R07
国际标准分类号35.240.60
归口单位全国智能运输系统标准化技术委员会
执行单位全国智能运输系统标准化技术委员会
主管部门国家标准化管理委员会
标准类型推荐性国家标准