Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

serial port support (console and python) #2934

Closed
everslick opened this issue Feb 12, 2014 · 5 comments
Closed

serial port support (console and python) #2934

everslick opened this issue Feb 12, 2014 · 5 comments

Comments

@everslick
Copy link

there is no way to use the serial ports from openelec now. shell scripts miss a way to initialize the a serial port (no stty program) and python lacks the pySerial module. I'd like to control my sanyo z4 projector from xbmc via a custom addon or shell. pls add stty and pySerial.

@UmpPCPL
Copy link

UmpPCPL commented Jun 26, 2014

I would like to support the request. There are many nice VFD displays with serial interface.
Currently I have to use lcdproc daemon (LCDd) to initialize serial port.

@stefansaraev
Copy link
Contributor

why not use setserial ?

@UmpPCPL
Copy link

UmpPCPL commented Aug 26, 2014

Thanks for comment. To be honest I didn't know "setserial" command.
I will check it if it is enough for me.

@stefansaraev
Copy link
Contributor

cleaning up. please test OE 5.0 rc1 and if it's still an issue, open a new ticket. make sure to read our guidelines for contributing first. thanks.

@tatayet38
Copy link

Hello, i use this solution to command an Samsung screen with OpenElec Kodi:

the script is called with the keymap.xml config file

#!/usr/bin/python
import os
#import serial
import time
#ser = serial.Serial(port='/dev/ttyUSB0', baudrate=9600)
print "screen on + DVI"
#screen on
os.system("echo -e \xAA\x11\xFE\x01\x01\x11 > /dev/ttyUSB0")
#ser.write("\xAA\x11\xFE\x01\x01\x11")
time.sleep( 0.5 )
#set mode DVI
os.system("echo -e \xAA\x14\xFE\x01\x18\x2B > /dev/ttyUSB0")
#ser.write("\xAA\x14\xFE\x01\x18\x2B")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants