From 1968449c6902ea685c3e55fc8354a2c4a1c97d46 Mon Sep 17 00:00:00 2001 From: acn Date: Mon, 31 Oct 2016 15:43:43 +0100 Subject: [PATCH] rtx-Logo korrigiert --- cept.py | 6 +++--- config.py | 2 +- doc/rtx-Logo.png | Bin 493 -> 386 bytes rtx.py | 3 ++- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/cept.py b/cept.py index e0c1a2b..5bc8806 100644 --- a/cept.py +++ b/cept.py @@ -68,9 +68,9 @@ btxlogo = ( "\x1f\x3d1# 200961a\x1f\x2f" # Link zur Demo-Startseite 200961a "\x1f\x43\x48\xb8\xa3\x12\x57\xe4" "\x1f\x44\x47\xea\xa0\x12\x59\xb5" - "\x1f\x45\x47\xea \xe8\xfc\xdf\x12\x49\xfc\xb4 \xb5" - "\x1f\x46\x47\xea \xe8\xdf\x12\x44\xa3\x12\x45\xdf\x12\x44\xb4 \xb5" - "\x1f\x47\x47\xea \xaa\xdf\xdf\xdf\xaf\xa1 \xfc\xdf\xdf\xfc \xa2\xaf\xdf\xdf\xdf\xa5 \xb5" + "\x1f\x45\x47\xea \xe0\xf8\xfc\xdf\x12\x49\xfc\xf4\xb0 \xb5" + "\x1f\x46\x47\xea \xe8\xdf\x12\x43\xbf\xa3\x12\x45\xef\xdf\x12\x43\xb4 \xb5" + "\x1f\x47\x47\xea \xaa\xdf\xdf\xdf\xaf\xa1\xe0\xfc\xdf\xdf\xfc\xb0\xa2\xaf\xdf\xdf\xdf\xa5 \xb5" "\x1f\x48\x47\xea \xa2\xe3\xf8\xfe\xdf\xea\xdf\x12\x43\xb5\xdf\xfd\xf4\xb3\xa1 \xb5" "\x1f\x49\x47\xea \xdf\x12\x43\xea\xdf\x12\x43\xb5\xdf\x12\x43 \xb5" "\x1f\x4a\x47\xea \xdf\x12\x43\xfd\xf3\xaf\xaf\xf3\xfe\xdf\x12\x43 \xb5" diff --git a/config.py b/config.py index b56ff9e..63995a1 100644 --- a/config.py +++ b/config.py @@ -15,7 +15,7 @@ DEMOPAGES="demopages/" LOGLEVEL=logging.DEBUG ## serial port settings: -PORT="/dev/pts/10" +PORT="/dev/pts/5" #PORT="/dev/ttyUSB0" BAUDRATE="2400" # if the system is connected directly (null-modem): MODE=direct diff --git a/doc/rtx-Logo.png b/doc/rtx-Logo.png index db0a5427d046ae1ab284067abd032fe1bb67e4d6..3baa127c02e91cabb7c71214ccc4eba75bab8550 100644 GIT binary patch delta 353 zcmV-n0iOQt1A+rHiBL{Q4GJ0x0000DNk~Le0005c0003S0RsR40EQWzQ2+n{22e~? zMF0SB|NsBa=08D^HY|S%9}X%w)vdSo00033NkldKN!%9<+8uO4Wa=9>;u98)VaOf#=&P7*XuQwrMT$V76W(=?4P z;vbu!%$uN4sD&l6p=dj0Q`~mS#?I}OAZ{5Cr3rY2TNile00000NkvXXu0mjfPm`9W delta 461 zcmV;;0W$uA1MLGgiBL{Q4GJ0x0000DNk~Le0005W0003M0s{a50QRl+wg3PC2~bQ_ zMF0R*0040R|Nof}sa}yYEPnr?uYnkI5vGQ)BU<{L4%Y0;r(Q*E}JQvw9nN7@j1+1If zs~t>c9WyOvU+xViv#FUjvM==plgVTzMKT=vU%~&ySUk=!SO$ z_hW*|Y+_FH42}HjaV(SB#+=r{vN^3CCbN|}{@icXN^T63+0Gnao8)Wb-0LAG)4U0j z$z(E_%yQG7FU)J2_Sj-x)3m1{^O|P0#$+;?&CPE>8hrA?0}kGA00000NkvXXu0mjf Dg#Own diff --git a/rtx.py b/rtx.py index a7fcb10..cc7f22d 100755 --- a/rtx.py +++ b/rtx.py @@ -23,7 +23,8 @@ import logging logging.basicConfig(format='%(asctime)s %(levelname)s: %(message)s', level=config.LOGLEVEL, datefmt='%Y-%m-%d %I:%M:%S') # initialize serial connection to client -glob.ser = serial.Serial(config.PORT, config.BAUDRATE, timeout=None) +logging.debug("Serial port %s, Baud rate %s", config.PORT, config.BAUDRATE) +glob.ser = serial.Serial(config.PORT, config.BAUDRATE, timeout=None, rtscts=True, dsrdtr=True) logging.info("Serial port %s opened", glob.ser.name) while True: