-
Notifications
You must be signed in to change notification settings - Fork 45
Receive VSD via UDP and deposit to SDC
0111sandesh edited this page May 25, 2017
·
20 revisions
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.
OBU -----ServiceRequest-----> ODE -----ServiceRequest----> SDC
OBU <----ServiceResponse----- ODE <----ServiceResponse---- SDC
OBU --------VsdMessage------> ODE --------VsdMessage-----> SDC
- OBU sends ServiceRequest to ODE, which forwards it to the SDC.
- ODE receives ServiceResponse from SDC, and forwards it back to the OBU.
- OBU sends VSD to ODE, which forwards it to the SDC.
Test Server --------VsdMessage------> ODE --------VsdMessage-----> SDC
- Tester sends VSD to ODE, which forwards it to the SDC.
This approach uses a mocked-up Blackbox which sends VSD dialog to ODE which then forwards the dialog to SDC.
- Open the Warehouse Tools on Samanage.
- Navigate to
webapp2.connectedvcs.com
and go to the Warehouse Tools Set. - Click the SDC Subscription tool at the top.
- 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.
- Click the
Connect
button and after connecting, click theSubmit Subscribtion
button to subscribe to SDC. - Using an IDE/text editor, open the
application.properties
file located in thejpo-ode-svcs/src/main/resources/
directory. - Update the fields
returnIp
andreturnPort
to where you want to receive the ServiceReponse from SDC. Use IPv4 for returnIp. Update the value for the fieldvsdmSenderPort
to what you are using forreturnPort
. Make sure that the firewall rules allow communication through the UDP ports on that ip. - Deploy ODE in an IPv6 supported instance (Rackspace) and create a separate IPv6 test instance(Rackspace) to emulate an OBU.
- Open http://:8080/ in a browser and click
Connect
button to subscribe to bsm kafka topic. - 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
- 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
- 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. - Verify the ODE attempted to send the VSD message to the SDC by checking the logs.
- Check the SDC web tools page and verify VSD was deposited.
- Check the http://:8080/ to verify that the BSMs have been received.
- 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
- 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
- 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