Skip to content

Receive VSD via UDP and deposit to SDC

0111sandesh edited this page May 25, 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 (Using Mock Blackbox):

This approach uses a mocked-up Blackbox which sends VSD dialog to ODE which then forwards the dialog to SDC.

  1. Open the Warehouse Tools on Samanage.
  2. Navigate to webapp2.connectedvcs.com and go to the Warehouse Tools Set.
  3. Click the SDC Subscription tool at the top.
  4. Set the parameters as shown in image 1 below making sure the NW Corner and the SE Corner defines a region which contains the position for the corresponding test VSD message. The one in the image defines Wyoming region.
  5. Click the Connect button and after connecting, click the Submit Subscribtion button to subscribe to SDC.
  6. Using an IDE/text editor, open the application.properties file located in the jpo-ode-svcs/src/main/resources/ directory.
  7. Update the fields returnIp and returnPort to where you want to receive the ServiceReponse from SDC. Use IPv4 for returnIp. Update the value for the field vsdmSenderPort to what you are using for returnPort. Make sure that the firewall rules allow communication through the UDP ports on that ip.
  8. Deploy ODE in an IPv6 supported instance (Rackspace) and create a separate IPv6 test instance(Rackspace) to emulate an OBU.
  9. Open http://:8080/ in a browser and click Connect button to subscribe to bsm kafka topic.
  10. 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
  11. 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
  12. 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.
  13. Verify the ODE attempted to send the VSD message to the SDC by checking the logs.
  14. Check the SDC web tools page and verify VSD was deposited.
  15. Check the http://: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