Skip to content

Receive VSD via UDP and deposit to SDC

0111sandesh edited this page May 19, 2017 · 20 revisions

Goal

This tests the full end-to-end functionality of the VSD SDC depositor feature. An UPER encoded VSD message will be sent over UDP from a test instance (emulating an OBU or RSE) to an instance running the ODE over IPv6. The ODE will then automatically forward and deposit this message to the SDC.

This expands on the functionality in Send VSD to SDC Test.

VSD Dialog (production)

  • OBU -----ServiceRequest-----> ODE -----ServiceRequest----> SDC
  • OBU <----ServiceResponse----- ODE <----ServiceResponse---- SDC
  • OBU --------VsdMessage------> ODE --------VsdMessage-----> SDC
  1. OBU sends ServiceRequest to ODE, which forwards it to the SDC.
  2. ODE receives ServiceResponse from SDC, and forwards it back to the OBU.
  3. OBU sends VSD to ODE, which forwards it to the SDC.

VSD Dialog (test)

  • Test Server --------VsdMessage------> ODE --------VsdMessage-----> SDC
  1. Tester sends VSD to ODE, which forwards it to the SDC.

Approach 1:

This test deposits VSD from ODE to SDC by following the VSD Dialog. In order to demonstrate this functionality, the sample VSD message which originates in Wyoming is sent as a unit test. Once ODE-308 is complete, this process will be automated as a service.

  1. Read the VSD deposit test to set up SDC subscription using the SDC web tools. Send VSD to SDC Test
  2. Deploy ODE in an IPv6 environment and create a separate IPv6 test instance to emulate an OBU.
  3. On the OBU emulator instance, obtain a VSDM uper file. curl https://raw.githubusercontent.com/usdot-jpo-ode/jpo-ode/ode-308/data/vsdm.uper > vsdm.uper
  4. Send the VSDM UPER file to the ODE over IPv6. cat vsdm.uper | nc -6u <ode_ip> 46753
  5. Verify the ODE received the message by checking ode.log. In the log there should be confirmation of UDP reception as well as a list of JSON BSMs extracted/converted from the VSDM: Screenshot
  6. Verify the ODE attempted to send the VSD message to the SDC by checking the logs.
  7. Return up the SDC web tools page and verify the message was deposited.

Approach 2:

This test deposits VSD from ODE to SDC by following the VSD Dialog. In order to demonstrate this functionality, the sample VSD message which originates in Wyoming is sent as a unit test. Once ODE-308 is complete, this process will be automated as a service.

  1. Read the VSD deposit test to set up SDC subscription using the SDC web tools. Send VSD to SDC Test
  2. Deploy ODE in an IPv6 environment and create a separate IPv6 test instance to emulate an OBU.
  3. Open http://162.242.218.130:8080/ in a browser and click Connect button to subscribe to bsm kafka topic.
  4. On the OBU emulator instance, obtain the ObuEmulator folder from: https://github.com/usdot-jpo-ode/jpo-ode/tree/ode-308/data/VSDM_Testing/ObuEmulator
  5. From within the ObuEmulator folder, run the following commands:
    a) Command to compile the java file.
    javac -classpath .:commons-codec-1.10.jar VsdDepositorToOde.java
    b) Command to run the app that sends VSD dialog to ODE.
    java -classpath .:commons-codec-1.10.jar VsdDepositorToOde
  6. Verify the ODE received the message by checking ode.log. In the log there should be confirmation of UDP reception as well as a list of JSON BSMs extracted/converted from the VSDM.
  7. Verify the ODE attempted to send the VSD message to the SDC by checking the logs.
  8. Check the SDC web tools page and verify the message was deposited.
  9. Check the http://162.242.218.130:8080/ to verify that the BSMs have been received.

Image 1: SDC Subscription Tool

Image 2: Connected Vehicle Message Validator Tool

Image 3: ODE Logs

Image 4: BSM Subscriber Web UI

Releases

Change Notices

Informational Reference

  • Decode a file with asn1c
  • Deposit BSM to S3
  • Docker fix for SSL issues due to corporate network
  • Docker management
  • ECDSA Primer
  • Filter BSMs through PPM module
  • Geofence Filtering for PPM
  • Import BSMs from RSU log file
  • Import TIMs from RSU log file
  • jpo security svcs Integration
  • Link host directory to Docker directory
  • Migrating from SDW websocket depositor to SDW Depositor Submodule
  • ODE Release Deployment
  • ODE Release Preparation
  • Prepare a fresh Ubuntu instance for ODE installation
  • Process for Handling Bugs (Code Defects)
  • Run the ODE using the ASN codec module
  • Query RSU for set TIMs
  • Schema Version 6 Change Notice
  • Signed Message File Import
  • TIM REST Endpoint Changes
  • Using the .env configuration file
  • Using the ODE test harness

Test Procedures

  • Delete TIM on RSU test
  • Event Logger Test
  • Import Decode and Deliver BSM Test
  • Manage SNMP Test
  • Sending PDM to RSU Test
  • Sending TIM to RSU Test
  • Submit_TIM_To_SDW Test

Archived

  • Log File Changes (schemaVersion=4)
  • Receive BSMs over UDP
  • Receive ISD via UDP and deposit to SDC
  • Receive VSD via UDP and deposit to SDC
  • Run the crypto test vectors code with ODE team's OSS encoder
  • SchemaVersion 5 Change Notice
Clone this wiki locally