Hi guys,
I’m experiencing an issue and I’m looking for clues to fix it.
I’d like to establish a communication with my Sharp Aquos TV via RS232 just to gives via openHAB information about its status. I’m using a null model RS232-USB cable and first of all I checked it using a pc and putty, I was able to establish a connection, send some commands to the TV and get back data from it. So the cable is ok.
Then I connected the cable to my raspberry pi 3 B where is running openhabian 1.3 and openHab 2.1 stable, installed via PAPER UI the Serial binding and created the items as:
String AquosSerial "Aquos Serial" (Multimedia) { serial="/dev/ttyUSB1@9600" }
After of course I verified the usb mount created for the cable.
If I make a test by screen, I’m again able to establish a communication, send commands to the TV and get back data. But if I send a command via Karaf to the item AquosSerial, I see in the log, after enabled the DEBUG level, the entries:
==> /var/log/openhab2/events.log <==
2018-03-21 12:39:05.035 [ItemCommandEvent ] - Item 'AquosSerial' received command IAVD????\r
==> /var/log/openhab2/openhab.log <==
2018-03-21 12:39:05.042 [DEBUG] [binding.serial.internal.SerialDevice] - Writing 'IAVD????\r' to serial port /dev/ttyUSB1
But the item doesn’t get back any data. Looking at the serial binding the settings used are the same required by the television: 8 bit data length, 1 bit stop, no parity bit and FLOWCONTROL_NONE since is the gnu.io.SerialPort default.
the permission on usb device are:
ls -la /dev/ttyUSB1
crw-rw---- 1 root dialout 188, 1 Mar 21 12:39 /dev/ttyUSB1
and the openhab user is member of dialout
grep 'dialout' /etc/group
dialout:x:20:openhab,pi
I also added the entry in the start.sh file:
EXTRA_JAVA_OPTS="-Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB1"
even if according to the documentation it seems not required.
Any ideas?
Thank you.