Skip to content

Run the ODE using the ASN codec module

Tony Chen edited this page Oct 26, 2017 · 16 revisions

Goal

Run the ODE using the ASN codec module and decode BSMs and TIMs from RSU log files.

Procedure

1. Create and move to a new directory.

mkdir myNewDirectory
cd myNewDirectory

2. Recursively clone branch ode-587 (TODO - this will become develop)

git clone --recurse-submodules https://github.com/usdot-jpo-ode/jpo-ode.git

3. Move to the jpo-ode directory

cd jpo-ode

4. Set environment variables (either locally using export VAR= or in the .env file)

DOCKER_SHARED_VOLUME= < path to jpo-ode directory > Note: DOCKER_SHARED_VOLUME must be in Linux format. If you are running on a Windows machine, valid Linux format would be something like: /C/Users/username/jpo-ode.

DOCKER_HOST_IP= < local ip address of the host machine >

5. Edit metadata.broker.list value

Open up adm.properties and change metadata.broker.list to your DOCKER_HOST_IP address followed by :9092. For example: metadata.broker.list=192.168.1.11:9092

Repeat for aem.properties

6. Add J2735 schema file

Copy your copy of the J2736 schema spec to jpo-ode/asn1_codec/asn1c_combined directory and name it J2735_201603DA.ASN

7. Build everything

docker-compose rm -fvs

# Build s3-depositor
cd jpo-s3-deposit
mvn clean compile assembly:single install

# Build ODE
cd ../
mvn clean install -DskipTests

docker-compose up --build -d
docker-compose ps

You should see at least the following containers with status "Up":

jpoode_adm_1               /bin/sh -c bash -c '/home/ ...   Up
jpoode_aem_1               /bin/sh -c bash -c '/home/ ...   Up
jpoode_kafka_1             start-kafka.sh                   Up       0.0.0.0:9092->9092/tcp
jpoode_ode_1               /bin/sh -c bash -c 'start- ...   Up       0.0.0.0:46753->46753/udp, 0.0.0.0:46800->46800/udp, 0.0.0.0:5555->5555/udp, 0.0.0.0:6666->6666/udp, 0.0.0.0:8080->8080/tcp,
                                                                     0.0.0.0:9090->9090/tcp
jpoode_zookeeper_1         /bin/sh -c /usr/sbin/sshd  ...   Up       0.0.0.0:2181->2181/tcp, 22/tcp, 2888/tcp, 3888/tcp

8. Navigate to the web UI at localhost:8080 and upload a file

After files are uploaded, you will see them appear in the relevant UI section.

You may also post a TIM REST call to broadcast TIM message to RSUs and deposit it to SDW.

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