News:

LATEST RELEASE:  FPP 8.5.1 - Download from here - https://github.com/FalconChristmas/fpp/releases/tag/8.5

+-+-

+-User

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+-Site Stats

Members
Total Members: 16898
Latest: Kap10G
New This Month: 14
New This Week: 0
New Today: 0
Stats
Total Posts: 135496
Total Topics: 16990
Most Online Today: 158
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 0
Guests: 91
Total: 91

Can UDP command be sent from an Event?

Started by falknerlights, April 12, 2020, 02:29:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

falknerlights

Hi, can a UDP command be sent to a device from an event in FPP 3.6.x?
If so, what is the format? I assume it would be a Run Script command, but have not had any success in figuring out the script text.
My use-case is to send a macro command to an ETC Paradigm controller. The controller is looking for IP address/port/message/carriage return.
Thanks in advance!

dkulp

If you have the script executing via /bin/bash instead of /bin/sh (check the first line of the script), then you can likely do something like:

echo "MessageToSend" > /dev/udp/192.168.1.187/3000

just put your target IP address and port after the /dev/udp/ stuff.     This is very bash specific.


We also have "netcat" installed so you could do:

echo "Message" | nc -u 192.168.1.187 3000
Daniel Kulp - https://kulplights.com

falknerlights

Daniel, thanks for your quick reply!
I can't seem to get FPP to output UDP after selecting an event and clicking on Trigger Event.
Attached is a screen shot of the Event window.
I'm sure it's something simple I'm missing.

falknerlights

Daniel, I finally was able to get back to this and it works well!
It turns out I needed to add the -e option and \r for it to work.

The whole script is:

#! /bin/bash

echo -e "Show Start\r" > /dev/udp/192.168.0.180/1316

Support FPP

+- Recent Topics

Light Elf Bluetooth IP65 Laser by Kap10G
March 22, 2025, 12:45:02 PM

HA MQTT plugin for single model by s1godfrey
March 20, 2025, 08:21:46 PM

Virtual Display not working? by dkulp
March 19, 2025, 11:45:01 AM

PixelOverlay-Clock - Revisited Again by jnealand
March 18, 2025, 06:00:53 PM

PixelOverlay-Clock.php works but I have questions... by datajack
March 18, 2025, 04:38:32 AM

Backup Feature not functional by efamlights
March 16, 2025, 11:58:28 AM

WS2811, Raspberry Pi 5, GPIO, could not initialize. by Ulysse-srfc24
March 16, 2025, 05:07:48 AM

K16A-B Issue by nolatron
March 15, 2025, 01:52:26 PM

F16V5 and SRx1 v5 by jkp
March 15, 2025, 07:19:44 AM

Differential Board: PSU & Enclosure by hakko808
March 14, 2025, 09:17:01 AM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod