Skip to content

Commit

Permalink
modified: engineering_tools/msgIntersect.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jwillmartin committed May 10, 2024
1 parent 4f55072 commit efc39eb
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion engineering_tools/msgIntersect.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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)

Expand Down

0 comments on commit efc39eb

Please sign in to comment.