Hi, first post so kinda unsure where to put this.
Im trying to set up my USB-UIRT to my RPi3 and then use HA to control it.
This is what I have done and where im stuck,
Start by installing lirc
sudo apt-get install lirc
Run
dmesg | grep -i usb
generats this:
[ 226.744926] usb 1-1.2: USB disconnect, device number 4
[ 226.745326] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0`
[ 228.001437] usb 1-1.2: new full-speed USB device number 6 using dwc_otg
[ 228.121881] usb 1-1.2: New USB device found, idVendor=0403, idProduct=f850
[ 228.121905] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 228.121918] usb 1-1.2: Product: USB-UIRT
[ 228.121930] usb 1-1.2: Manufacturer: FTDI
[ 228.127791] ftdi_sio 1-1.2:1.0: FTDI USB Serial Device converter detected
[ 228.128004] usb 1-1.2: Detected FT232RL
[ 228.128990] usb 1-1.2: FTDI USB Serial Device converter now attached to ttyUSB0
My best guess is that the UIRT is at ttyUSB0.
Set up the config file to this:
# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS="-d /dev/ttyUSB0"
#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD=false
#Don't start irexec, even if a good config file seems to exist.
#START_IREXEC=false
#Try to load appropriate kernel modules
LOAD_MODULES=true
# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="usb_urit_raw"
# usually /dev/lirc0 is the correct setting for systems using udev
DEVICE="/dev/ttyUSB0"
MODULES="lirc_rpi"
# Default configuration files for your hardware if any
LIRCD_CONF=""
LIRCMD_CONF=""
Run:
mode2 --driver=uirt2_raw --device=/dev/ttyUSB0
mode2: could not create lock file "/var/lock/LCK..ttyUSB0"
mode2: File exists
mode2: WARNING: detected stale lockfile /var/lock/LCK..ttyUSB0
mode2: WARNING: stale lockfile removed
mode2: uirt2_raw: checksum error
mode2: uirt2_raw: UIRT version 0905 ok
Press a button on my remote witch generate this:
space 1600
pulse 600
space 38500
pulse 8900
space 2150
pulse 600
Ive added my remote to the lircd.conf file:
#UNCONFIGURED
#
# To find out how to get a proper configuration file please read:
#
# /usr/share/doc/lirc/README.Debian
begin remote
name Yamaha_RAV302
bits 16
flags SPACE_ENC|CONST_LENGTH|REVERSE
eps 30
aeps 100
header 8853 4532
one 533 1714
zero 533 589
ptrail 533
pre_data_bits 16
pre_data 0x857A
gap 107903
toggle_bit 0
begin codes
KEY_CD 0x000000000000EA15 # Was: CD
DTV/CBL 0x000000000000AB54
KEY_DVD 0x0000000000003EC1 # Was: DVD
MD/CD-R 0x00000000000036C9
KEY_TUNER 0x000000000000E916 # Was: TUNER
V-AUX 0x000000000000AA55
KEY_VCR 0x000000000000F00F # Was: VCR
MULTI_CH_IN 0x0000000000007887
VCR2 0x000000000000EC13
PHONO 0x000000000000EB14
INPUT_MODE 0x0000000000003CC3
SYSTEM_POWER 0x000000000000E21D
KEY_SLEEP 0x000000000000E11E # Was: STANDBY
KEY_VOLUMEUP 0x000000000000E51A # Was: VOL+
KEY_VOLUMEDOWN 0x000000000000E41B # Was: VOL-
KEY_MUTE 0x000000000000E31C # Was: MUTE
KEY_SLEEP 0x000000000000A857 # Was: SLEEP
SET_MENU 0x000000000000639C
KEY_UP 0x0000000000006798 # Was: UP
KEY_DOWN 0x0000000000006699 # Was: DOWN
KEY_LEFT 0x000000000000AC53 # Was: LEFT
KEY_RIGHT 0x000000000000AD52 # Was: RIGHT
KEY_ENTER 0x00000000000021DE # Was: ENTER
KEY_ENTER 0x00000000000055AA # Was: RETURN
TEST 0x0000000000007A85
SPEAKERS_A 0x000000000000659A
SPEAKERS_B 0x000000000000649B
KEY_MENU 0x0000000000003DC2 # Was: OSD
MAIN_SYSTEM_POWER 0x000000000000817E
MAIN_STANDBY 0x000000000000807F
KEY_CHANNELUP 0x00000000000EF10 # Was: CH_UP
KEY_CHANNELDOWN 0x00000000000EE11 # Was: CH_DOWN
A_B_CAT+ 0x00000000000ED12
When I try to execute sudo irsend SEND_ONCE Yamaha_RAV302 KEY_SLEEP
i get this:
irsend: command failed: SEND_ONCE Yamaha_RAV302 KEY_SLEEP
irsend: hardware does not support sending
Anyone know what might be wrong here?
Thankful for any help.