-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<!-- Thanks for the contribution, this is awesome. --> # PR Details ## Description This is the implementation story for the telematic bridge to stream J2735 data from V2xHub into the cloud at near real time. The module design refers to https://usdot-carma.atlassian.net/wiki/spaces/WFD2/pages/2640379977/V2xHub+WFD+Bridge+Design The following functionalities should be implemented for this module: Able to forward the JSON message to telematic cloud when the message type is requested by end users through telematic UI. Able to register itself with WFD cloud services. Able to map each TMX message type to each individual topic. Able to provide available topics to telematic cloud. Able to stream the requested TMX message in JSON format to telematic cloud. <!--- Describe your changes in detail --> ## Related Issue NA <!--- This project only accepts pull requests related to open issues --> <!--- If suggesting a new feature or change, please discuss it in an issue first --> <!--- If fixing a bug, there should be an issue describing it with steps to reproduce --> <!--- Please link to the issue here: --> ## Motivation and Context Telematic tool data collection <!--- Why is this change required? What problem does it solve? --> ## How Has This Been Tested? Unit test and local integration testing <!--- Please describe in detail how you tested your changes. --> <!--- Include details of your testing environment, and the tests you ran to --> <!--- see how your change affects other areas of the code, etc. --> ## Types of changes <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [ ] Defect fix (non-breaking change that fixes an issue) - [x] New feature (non-breaking change that adds functionality) - [ ] Breaking change (fix or feature that cause existing functionality to change) ## Checklist: <!--- Go over all the following points, and put an `x` in all the boxes that apply. --> <!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> - [ ] I have added any new packages to the sonar-scanner.properties file - [ ] My change requires a change to the documentation. - [ ] I have updated the documentation accordingly. - [x] I have read the **CONTRIBUTING** document. [V2XHUB Contributing Guide](https://github.com/usdot-fhwa-OPS/V2X-Hub/blob/develop/Contributing.md) - [ ] I have added tests to cover my changes. - [ ] All new and existing tests passed.
- Loading branch information
1 parent
774b31f
commit 6b604b7
Showing
11 changed files
with
876 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
## Telematic bridge introduction | ||
Telematic bridge is a V2xHub plugin used to collect data stream generated by V2xHub and send the data stream into [telematic tool](https://github.com/usdot-fhwa-stol/cda-telematics) hosted in the AWS cloud. | ||
## NATS Publisher/Subscriber | ||
### NATS Connections and registration | ||
#### Telematic plugin sends registration request to telematic server | ||
##### Subject | ||
NATS subject: *.register_unit | ||
##### Request | ||
``` | ||
{ | ||
"unit_id": "<unit_id>" | ||
} | ||
``` | ||
##### Response | ||
``` | ||
{ | ||
"unit_id": "<unit_id>", | ||
"unit_type": "infrastructure", | ||
"unit_name": "East Intersection", | ||
"timestamp": "1678998191815233965", | ||
"event_name": "wfd_integration_testing", | ||
"location": "TFHRC", | ||
"testing_type": "Integration" | ||
} | ||
``` | ||
|
||
### Available topics | ||
#### Telematic plugin receives request from telematic UI | ||
##### Subject | ||
NATS subject: <unit_id>.available_topics | ||
##### Request | ||
``` | ||
{ | ||
"unit_id": "<unit_id>" | ||
} | ||
``` | ||
##### Reply | ||
|
||
``` | ||
{ | ||
"unit_id": "<unit_id>", | ||
"unit_type": "infrastructure", | ||
"unit_name": "East Intersection", | ||
"timestamp": "1678998191815233965", | ||
"event_name": "wfd_integration_testing", | ||
"location": "TFHRC", | ||
"testing_type": "Integration", | ||
"topics": [ | ||
{ | ||
"name": "J2735_TMSG03-P_CARMAStreetsPlugin" | ||
}, | ||
{ | ||
"name": "<topic_name_2>" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
### Selected topics | ||
#### Telematic plugin receives selected topics from telematic UI | ||
##### Subject | ||
NATS subject: <unit_id>.publish_topics | ||
#### Request | ||
``` | ||
{ | ||
"unit_id": "<unit_id>", | ||
"unit_type": "infrastructure", | ||
"timestamp": 1663084528513000400, | ||
"event_name": "wfd_integration_testing", | ||
"location": "TFHRC", | ||
"testing_type": "Integration", | ||
"topics": [ | ||
"<topic_name_1>", | ||
"<topic_name_2>" | ||
] | ||
} | ||
``` | ||
##### Reply | ||
``` | ||
"request received!" | ||
``` | ||
|
||
## Check status | ||
#### Telematic plugin receives live status request from telematic server | ||
##### Subject | ||
NATS subject: <unit_id>.check_status | ||
##### Request | ||
``` | ||
{ | ||
"unit_id": "<unit_id>" | ||
} | ||
``` | ||
##### Reponse | ||
``` | ||
"OK" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.