Skip to content

Sending positions to an IMC network

Jose Pinto edited this page May 18, 2017 · 1 revision

imcast is a simple program that can be used to send positions (Announce messages) from external systems into an IMC network.

Compilation

From the imcjava folder, run:

ant imcast

Running in Linux

After compilation, a binary file with the program will be put in the dist/ folder. To run, execute (PORT is port where to listen):

cd dist; ./imcast <PORT>

Running in Windows

After compilation, a jar file will be put in the dist/ folder. To run, execute (PORT is port where to listen):

cd dist
java -jar imcast.jar <PORT>

Sending positions from Bash

You should send JSON data (text) with the positions to be sent. Example:

echo -n {sys_name:teste2, sys_type:uuv, longitude:-8.64, latitude:41.2456, height:0} > /dev/udp/127.0.0.1/6003
Clone this wiki locally