---
name: "irtext2udp"
section: "1"
platform: "linux"
package: "lirc"
version: "1:0.10.2-6"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/irtext2udp"
---

# irtext2udp(1)

Convert pulse/space text data to binary UDP driver format

## NAME

**irtext2udp** - Convert pulse/space text data to binary UDP driver format

## SYNOPSIS

**irtext2udp** \[-r *resolution*\] \[*file*\]

## DESCRIPTION

**irtext2udp** is a filter converting pulse/space printable data such as generated by **[mode2(1)](/mode2/1.md)** to the binary format used by the LIRC udp driver.

The file argument is a textfile with pulse/space data. If not given, standard input is used. Lines not starting with *space* or *pulse* are silently ignored.

The normal usage pattern is to combine **irtext2udp** with  standard tools such as **[ncat(1)](/ncat/1.md)** or **[socat(1)](/socat/1.md)** to send the binary data to a **lircd** instance using the udp driver.

## OPTIONS

- **-r, --***resolution* \<*resolution*\>

  Udp packages are measured in ticks. The length of each tick is defined by the resolution. The default value is 61, computed as 1000000/16384 and corresponding to 1/16384 seconds. This is derived from old designs using a 32 kHz clock.

- **-v** , **--version**

  Print version and exit.

- **-h** , **--help**

  Print help message.

## EXAMPLES

Using [ncat(1)](/ncat/1.md)  or [socat(1)](/socat/1.md) to send data to a lircd instance using the udp driver listening on the default udp port 8765 on localhost:

```
    irtext2udp < input-file | nc --udp localhost 8765
    irtext2udp < input-file | socat STDIN UDP:localhost:8765
```

## SEE ALSO

**[ncat(1)](/ncat/1.md)**\
 **[mode2(1)](/mode2/1.md)**\
 **[lircd(8)](/lircd/8.md)**\
 **[socat(1)](/socat/1.md)**\
 **http://lirc.org/html/udp.html**
