From efc39eb202110c7585b315f684ab6e534422e521 Mon Sep 17 00:00:00 2001 From: jwillmartin Date: Fri, 10 May 2024 10:32:07 -0400 Subject: [PATCH] modified: engineering_tools/msgIntersect.py --- engineering_tools/msgIntersect.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/engineering_tools/msgIntersect.py b/engineering_tools/msgIntersect.py index 34818dcd3b..b3e4a8d897 100644 --- a/engineering_tools/msgIntersect.py +++ b/engineering_tools/msgIntersect.py @@ -1,4 +1,13 @@ ## Receive and Forward SAE J2735 Message Payload +# This script receives messages sent by V2X Hub, strips the Active Message File header, and forwards only the message/payload to CARMA Messenger. +# The Active Message File is an ASCII-encoded hex string that is required by RSUs. Most other applications require only the message payload +# found at the end of the file, encoded as a UTF-8 hex string. + +# The script can be run on either PC running V2X Hub or CARMA Messenger. The following configurations must be made: +# ip_listen, port_listen: IPv4 Address and Port where messages will be received. Must match IP:Port set in Immediate Forward Plugin. +# ip_send, port_send: IPv4 Address and Port where payload will be sent. Must match IP, Port set in carma-cohda-dsrc-driver dsrc_driver/config/params.yaml. +# This script assumes both V2X Hub and CARMA Messenger are running on either the same PC or two separate PCs within the same local network. + import socket from time import sleep @@ -24,7 +33,7 @@ def main(): ip_listen = '127.0.0.1' ip_send = '192.168.0.146' port_listen = 1516 # listen to Immediate Forward Plugin - port_send = 5398 # send to CARMA + port_send = 5398 # send to CARMA listening_port sk_listen = listen(ip_listen, port_listen)