Skip to content

Kardinia-Church/TVNetworkIR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TVNetworkIR

A ESP8266 project for controlling a TV using IR

Packet structure

The device expects a broadcast message (255.255.255.255) of size 16 sent on the configured port (default 2390) as follows:

0x49 0x52 0x54 0x56 [P P P P P P P P] [I] [C C C]
IRTV <PASSWORD length 8> <TV ID length 1> <CMD length 3>

Example using a PON command with password "pass" to TV with id 1

[0x49 0x52 0x54 0x56] [0x70 0x61 0x73 0x73 0x00 0x00 0x00 0x00] [0x01] [0x50 0x4F 0x4E]

[] is each part of the packet

Note the password is not encrypted!

Each command will reply to the host at the configured answer port (default 2391) with:

IRTV<id><STATE> if successful
IRTV<id>AUTHERR if the password is incorrect

or if the command had a speicifc reply it'll reply with that

Supported commands

  • Power On/Off
PON will turn on the tv
POF will turn off the tv
PSW will force the stored state to the inverted state (if not in sync)
PNG will be sent by the device so often to check the network status. It expects a response of "PNG". If there is no response the device will reboot
  • Get power status
CPW will return the current power state of the tv as IRTV<id><state> (PON or POF)

Supported TV types

In the settings.h file a TV type can be specified for the default on/off command by setting the TV_TYPE to any of the supoorted TVs below

  • TV_TYPE_HISENSE
  • TV_TYPE_PANASONIC
  • TV_TYPE_PANASONIC_2
  • TV_TYPE_SONIQ

Custom commands

If you want to add custom commands this can be done in the commands.h file.

Example Node Red Flow

The following is an example of a node red flow to use this project

About

A ESP8266 project for controlling a TV using IR

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published