tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Showcase builds, discuss cases, embedding MiSTer into existing computer cases.
User avatar
neogeo81
Top Contributor
Posts: 445
Joined: Fri Apr 16, 2021 1:52 pm
Has thanked: 34 times
Been thanked: 47 times

Re: tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Unread post by neogeo81 »

venice wrote: Fri Aug 09, 2024 3:21 pm

I have an Antoino tty2oled ESP32 Board here.
Works as expected, just tried.

IMG_1150.jpeg

I found the issue :!:

It's the tapto script. After disabling it at start the tty2oled works like it should.
If the NFC reader is plugged in a USB port the issue doesn't appear. As soon as there is no NFC reader active and the tapto script is active it conflicts eith the tty2oled.

User avatar
venice
Top Contributor
Posts: 788
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 278 times
Been thanked: 278 times

Re: tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Unread post by venice »

Great, good finding!

Is it possible to configure tapto for another usb port?

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard (Cardwarez) to me.

User avatar
neogeo81
Top Contributor
Posts: 445
Joined: Fri Apr 16, 2021 1:52 pm
Has thanked: 34 times
Been thanked: 47 times

Re: tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Unread post by neogeo81 »

venice wrote: Sat Aug 10, 2024 5:29 am

Great, good finding!

Is it possible to configure tapto for another usb port?

I tried this as wizzo told me but it didn't help.

You do not have the required permissions to view the files attached to this post.
User avatar
RealLarry
Top Contributor
Posts: 881
Joined: Mon May 25, 2020 4:04 am
Location: San Junipero/DE/Earth
Has thanked: 120 times
Been thanked: 385 times

Re: tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Unread post by RealLarry »

Maybe this is getting better when I've finished the support for TapTo in tty2rpi which could be also used in tty2oled then.
But "it's done when it's done" ;)

Contributor of tty2oled, author of tty2tft, tty2rpi and update_tty2xxx
User avatar
venice
Top Contributor
Posts: 788
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 278 times
Been thanked: 278 times

Re: tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Unread post by venice »

neogeo81 wrote: Sat Aug 10, 2024 7:36 am

I tried this as wizzo told me but it didn't help.

Did you tell this to Wizzo?

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard (Cardwarez) to me.

User avatar
neogeo81
Top Contributor
Posts: 445
Joined: Fri Apr 16, 2021 1:52 pm
Has thanked: 34 times
Been thanked: 47 times

Re: tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Unread post by neogeo81 »

venice wrote: Sun Aug 11, 2024 6:54 am
neogeo81 wrote: Sat Aug 10, 2024 7:36 am

I tried this as wizzo told me but it didn't help.

Did you tell this to Wizzo?

Yes, he is checking out how this can avoided.

User avatar
neogeo81
Top Contributor
Posts: 445
Joined: Fri Apr 16, 2021 1:52 pm
Has thanked: 34 times
Been thanked: 47 times

Re: tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Unread post by neogeo81 »

venice wrote: Sun Aug 11, 2024 6:54 am
neogeo81 wrote: Sat Aug 10, 2024 7:36 am

I tried this as wizzo told me but it didn't help.

Did you tell this to Wizzo?

it looks like both use generic usb controllers they intervene with each connection. i don't know if there is something from your side you can fix.

User avatar
venice
Top Contributor
Posts: 788
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 278 times
Been thanked: 278 times

Re: tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Unread post by venice »

Some ideas…
The easiest is to use a fix defined port with TapTo.

TapTo can check the ini files of tty2oled (if they exist) and doesn‘t probe the configured port.

Start tty2oled after TapTo.
Try to change the order in the startup file.

We can add a startup delay to the tty2oled script.

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard (Cardwarez) to me.

User avatar
neogeo81
Top Contributor
Posts: 445
Joined: Fri Apr 16, 2021 1:52 pm
Has thanked: 34 times
Been thanked: 47 times

Re: tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Unread post by neogeo81 »

venice wrote: Tue Aug 13, 2024 5:08 am

Some ideas…
The easiest is to use a fix defined port with TapTo.

TapTo can check the ini files of tty2oled (if they exist) and doesn‘t probe the configured port.

Start tty2oled after TapTo.
Try to change the order in the startup file.

We can add a startup delay to the tty2oled script.

The probe doesn't works. It still interferes.
The order or delay could work but the problem is when you have try2oled active and plugged but the tapto script just running with nothing plugged.

User avatar
venice
Top Contributor
Posts: 788
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 278 times
Been thanked: 278 times

Re: tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Unread post by venice »

I hope that, if you change the boot order (and add a delay) TapTo has done his probing and tty2oled can start normal.

Have you tried to change the boot order?

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard (Cardwarez) to me.

User avatar
neogeo81
Top Contributor
Posts: 445
Joined: Fri Apr 16, 2021 1:52 pm
Has thanked: 34 times
Been thanked: 47 times

Re: tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Unread post by neogeo81 »

venice wrote: Wed Aug 14, 2024 4:02 am

I hope that, if you change the boot order (and add a delay) TapTo has done his probing and tty2oled can start normal.

Have you tried to change the boot order?

I will try that and if it does not work i will set the tapto reader to manuall

User avatar
neogeo81
Top Contributor
Posts: 445
Joined: Fri Apr 16, 2021 1:52 pm
Has thanked: 34 times
Been thanked: 47 times

Re: tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Unread post by neogeo81 »

venice wrote: Wed Aug 14, 2024 4:02 am

I hope that, if you change the boot order (and add a delay) TapTo has done his probing and tty2oled can start normal.

Have you tried to change the boot order?

i think the boot order just did the trick. it shows UU on startup but then went back to the MiSTer logo and stayed. Thanks!

User avatar
venice
Top Contributor
Posts: 788
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 278 times
Been thanked: 278 times

Re: tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Unread post by venice »

If you need an additional delay add a new line with “sleep [delay]” to
to file /media/fat/tty2oled/tty2oled.sh
after the line

Code: Select all

 # ** Main **

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard (Cardwarez) to me.

AmintaMister
Posts: 313
Joined: Thu Sep 16, 2021 10:54 pm
Has thanked: 840 times
Been thanked: 51 times

Re: tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Unread post by AmintaMister »

Same issue here, still not resolved...

User avatar
venice
Top Contributor
Posts: 788
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 278 times
Been thanked: 278 times

Re: tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Unread post by venice »

The UU issue?

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard (Cardwarez) to me.

AmintaMister
Posts: 313
Joined: Thu Sep 16, 2021 10:54 pm
Has thanked: 840 times
Been thanked: 51 times

Re: tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Unread post by AmintaMister »

When I have both TapTo and tty2oled connected, TapTo doesn't work. If I disconnect tty2oled, TapTo works. Can I change the ttyUSB0 assigned to TapTo ttyUSB1 or vice versa?

Thanks!

User avatar
neogeo81
Top Contributor
Posts: 445
Joined: Fri Apr 16, 2021 1:52 pm
Has thanked: 34 times
Been thanked: 47 times

Re: tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Unread post by neogeo81 »

Go to the linux folder and open the user_startup file. In there you need to put the tapto script at the top first position and the tty2oled at the last position. This gives enough space that the two scripts don't interfere.

User avatar
venice
Top Contributor
Posts: 788
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 278 times
Been thanked: 278 times

Re: tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Unread post by venice »

You can configure your tty interface in the users ini file.

See https://github.com/venice1200/MiSTer_tt ... n#ini-file

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard (Cardwarez) to me.

AmintaMister
Posts: 313
Joined: Thu Sep 16, 2021 10:54 pm
Has thanked: 840 times
Been thanked: 51 times

Re: tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Unread post by AmintaMister »

Hi all, thanks for your advices!

So I've set my user-startup.sh like this:

Code: Select all

#!/bin/sh

echo "***" $1 "***"

# mrext/tapto
[[ -e /media/fat/Scripts/tapto.sh ]] && /media/fat/Scripts/tapto.sh -service $1

# Startup favorites
[[ -e /media/fat/Scripts/favorites.sh ]] && /media/fat/Scripts/favorites.sh refresh

sh /media/fat/Scripts/cifs_mount.sh

# mrext/remote
[[ -e /media/fat/Scripts/remote.sh ]] && /media/fat/Scripts/remote.sh -service $1

# Startup tty2oled
[[ -e /media/fat/tty2oled/S60tty2oled ]] && /media/fat/tty2oled/S60tty2oled $1

My tapto.ini like this:

Code: Select all

[tapto]
connection_string=
allow_commands=false
disable_sounds=false
probe_device=true
exit_game=false
exit_game_blocklist=
exit_game_delay=0
debug=false
api_port=7497
api_basic_auth=
reader="pn532_uart:/dev/ttyUSB0"

[systems]

And my tty2oled-user.ini like this:

Code: Select all

# Version 2.7
#
# Copyright (c) 2021/2022 ojaksch, venice
#
# v2.7 New Variable "SLEEPMODEDELAY"
# v2.6 New Option Screensaver "Toast"
# v2.5 New Option Screensaver "Stars"
# v2.4 New Option for Screensaver "Screens"
# v2.3 Variable TRANSITION for definable transition effect
# v2.2 New daemon for feedback from ESP
# v2.1 Merge of tty2oled-system.ini and tty2oled-user.ini, leaving
#      tty2oled-user.ini to user specific settings
# v2.0 New Options for SCREENSAVER Options
# v1.9 ANSI codes, TTY2OLED_FW_TESTING, USE_GSC_PICTURE=yes default
# v1.8 USE_RANDOM_ALT to dice between xxx_alt* pictures
# v1.7 USE_GSC_PICTURE defaults to no
# v1.6 New Option USE_GSC_PICTURE
# v1.5 New Options CCSCRIPT, PICTURE_REPOSITORY_URL, USERSTARTUP, USERSTARTUPTPL
#      Add "-echo" to TTYPARAM
# v1.4 New Options UPDATESCRIPT, INITDISABLED, ROTATE, SCRIPT_UPDATE
#      New but unused Options USE_WO_PICTURE, USE_EU_PICTURE, USE_JP_PiCTURE
#      Changed "RAW" REPOSITORY_URL.
# v1.3 New Option "USE_US_PICTURE"
# v1.2 New Option "CONTRAST"
# v1.1 New Option "USE_TEXT_PICTURE"
# v1.0 Initial Release
#

# Debugging
debug="false"
debugfile="/tmp/tty2oled"

# Recurring functions
yesno() {
    seconds=${1}
    [ -z "${seconds}" ] && seconds=5
    echo -en "${chide}"
    while [ ${seconds} -gt 0 ]; do
	echo -en "\e[1D${fred}${seconds}${freset}"
	read -r -s -t1 -N1 KEY
	[ "${KEY}" == "A" ] && KEY="y" && break
	[ "${KEY}" == "B" ] && KEY="n" && break
	: $((seconds--))
    done
    echo -en "${cshow}"
    echo
}

fblink="\e[5m"
fbold="\e[1m"
fdim="\e[2m"
freset="\e[0m\033[0m"
finvers="\e[7m"
fhidden="\e[8m"
funderl="\e[4m"
fblue="\e[1;34m"
fgreen="\e[1;32m"
fcyan="\e[1;36m"
fred="\e[1;31m"
fmagenta="\e[1;35m"
fyellow="\e[1;33m"
fwhite="\e[1;37m"
fgrey="\e[1;30m"
chide="\e[?25l"
cshow="\e[?25h"

REPOSITORY_URL="https://raw.githubusercontent.com/venice1200/MiSTer_tty2oled/main"
REPOSITORY_URL2="https://www.tty2tft.de//MiSTer_tty2oled-installer"
[ -e /media/fat/tty2oled/TTY2OLED_TESTING ] && REPOSITORY_URL="https://raw.githubusercontent.com/venice1200/MiSTer_tty2oled/main/Testing"
PICTURE_REPOSITORY_URL="https://www.tty2tft.de"
export RSYNC_PASSWORD="eSvcFFF5aLpmbNqWKE3SE2FewkWE"

NODEBUG="-q -o /dev/null"

TTY2OLED_PATH="/media/fat/tty2oled"
INITSCRIPT="${TTY2OLED_PATH}/S60tty2oled"
INITDISABLED="${TTY2OLED_PATH}/_S60tty2oled"
UPDATESCRIPT="/media/fat/Scripts/update_tty2oled.sh"
DAEMONNAME="tty2oled.sh"
DAEMONSCRIPT="${TTY2OLED_PATH}/tty2oled.sh"
READSCRIPT="${TTY2OLED_PATH}/tty2oled-read.sh"
CCSCRIPT="/media/fat/Scripts/tty2oled_cc.sh"
USERSTARTUP="/media/fat/linux/user-startup.sh"
USERSTARTUPTPL="/media/fat/linux/_user-startup.sh"
SLEEPFILE="/tmp/tty2oled_sleep"
corenamefile="/tmp/CORENAME"
picturefolder="${TTY2OLED_PATH}/pics"
picturefolder_pri="${TTY2OLED_PATH}/pics_pri"

WAITSECS="0.2"
ttyresponse=""
newcore=""
oldcore=""


# Do not change this until you know what you do
MOUNTRO="false"			# Helper flag for update_tty2oled_script.sh. Please don't touch as it leaves the SD card of MiSTer writeable otherwise.

################ The lines above are the system settings. Only edit in case
#		 you know what you are doing!

################ The lines below are the user settings. Instead of editing
#		 them, please copy the one(s) to tty2oled-user.ini and edit
#		 them there.

# Serial
BAUDRATE="115200"
TTYDEV="/dev/ttyUSB1"
TTYPARAM="cs8 raw -parenb -cstopb -hupcl -echo"

# ---Currently unused Location's---
USE_WO_PICTURE="no"			# Set to "yes" if you want the Global/World Version of the Pictures, default is "no"
USE_EU_PICTURE="no"			# Set to "yes" if you want the Europe Version of the Pictures, default is "no"
USE_JP_PiCTURE="no"			# Set to "yes" if you want the Japan Version of the Pictures, default is "no"

# Userdata
TTY2OLED_UPDATE="yes"				# Keep the display software up-to-date
AUTOUPDATE="yes"				# Autoupdate every week?
SCRIPT_UPDATE="yes"				# Set to "yes" if you want to update the tty2oled Scripts by the "Updater"
USBMODE="yes"					# Set to "yes" if you use the USB Mode Sketch, set to "no" for SD or Standard Version
ROTATE="no"					# Set to "yes" if you want the Display rotated by 180 degrees
CONTRAST="100"					# Set/send your Contrast from 0..255, default by Arduino Sketch = 200
OVERWRITE_PICTURE="yes"				# Set to "yes" if you want to overwrite existing Pictures if they're updated upstream
SCREENSAVER="no"				# Set to "yes" to enable screensaver mode on display
SCREENSAVER_START="120"				# Start screensaver after x seconds (20-600)
SCREENSAVER_IVAL="10"				# Screensaver Interval (10-600) seconds
SCREENSAVER_SCREEN_TTY2OLED="yes"		# Use tty2oled Screen "yes/no"
SCREENSAVER_SCREEN_MISTER="yes"			# Use MiSTer Screen "yes/no"
SCREENSAVER_SCREEN_CORE="yes"			# Use Corename Screen "yes/no"
SCREENSAVER_SCREEN_TIME="yes"			# Use Time Screen "yes/no"
SCREENSAVER_SCREEN_DATE="yes"			# Use Date Screen "yes/no"
SCREENSAVER_SCREEN_STARS="no"			# Use Animated ScreenSaver Starfield "yes/no"
SCREENSAVER_SCREEN_TOAST="no"			# Use Animated ScreenSaver Flying Toaster"yes/no"
SCREENSAVER_LEVEL="5"				# !! Deprecated !! Screensaver brightness level (1-15)
USE_TEXT_PICTURE="no"				# Set to "yes" if you want to use the Text-Pictures-Version, default is no
USE_US_PICTURE="no"				# Set to "yes" if you want to use the US Version of the Pictures, default is "no"
USE_GSC_PICTURE="yes"				# Set to "yes" if you want to use the Grayscale Version of the Pictures, default is "no"
USE_RANDOM_ALT="yes"				# If set to yes and there're xxx_alt* pictures, they'll be diced.
TRANSITION="-1"					# Transition effect. -1 = AUTO, 0 = None, 1-xx see sketch
SLEEPMODEDELAY="2"				# Delay after Sleepmopde was finished

So now TapTo reader is assigned to /dev/ttyUSB0 and tty2oled to /dev/ttyUSB1.

Now both devices work together... sort of...

After MiSTer boot is complete, I launch a game with TapTo, the game loads and tty2oled... sometimes show the system, sometimes show a "UU" and shuts down.

But even if all goes right, If i try to change the game I have to tap the card many times on TapTo device to change game: instead, if I disconnect TTTty2Oled the change is instant at each tap.

So there is still some conflict and meanwhile I prefer to keep tty2oled shut off... :-(

User avatar
venice
Top Contributor
Posts: 788
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 278 times
Been thanked: 278 times

Re: tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Unread post by venice »

The user ini should contain ONLY lines which are different to the system config.
In your case maybe only the TTYDEV line.
Do not copy the whole system ini to the user ini.

As far as i know the UU is created by TapTo and his interface probing.
Set this to „false“.

You write tty2oled is assigned to ttyUSB1.
But you can‘t assign a device to an interface.
The assignment is done by MiSTer’s linux and the ini should reflect/contain these information.

You are sure the display is ttyUSB1?

Give us more hardware details.
See https://github.com/venice1200/MiSTer_tt ... erial-port

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard (Cardwarez) to me.

AmintaMister
Posts: 313
Joined: Thu Sep 16, 2021 10:54 pm
Has thanked: 840 times
Been thanked: 51 times

Re: tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Unread post by AmintaMister »

venice wrote: Thu Aug 22, 2024 6:03 pm

The user ini should contain ONLY lines which are different to the system config.
In your case maybe only the TTYDEV line.
Do not copy the whole system ini to the user ini.

As far as i know the UU is created by TapTo and his interface probing.
Set this to „false“.

You write tty2oled is assigned to ttyUSB1.
But you can‘t assign a device to an interface.
The assignment is done by MiSTer’s linux and the ini should reflect/contain these information.

You are sure the display is ttyUSB1?

Give us more hardware details.
See https://github.com/venice1200/MiSTer_tt ... erial-port

Thanks!

I've changed tap.ini setting to false the interface probing:

Code: Select all

[tapto]
connection_string=
allow_commands=false
disable_sounds=false
probe_device=false
exit_game=false
exit_game_blocklist=
exit_game_delay=0
debug=false
api_port=7497
api_basic_auth=
reader="pn532_uart:/dev/ttyUSB0"

[systems]

Now TapTo device aways works.

I've removed the tty2oled user.ini, system.ini has the "stock" value TTYDEV="/dev/ttyUSB0", hoever is always "stuck" on "tty2Oled" screen :-(

Here are the results of dmesg | grep tty on MiSTer:

Code: Select all

[    1.968530] usb 1-1.3: ch341-uart converter now attached to ttyUSB0
[    4.071732] ch341-uart ttyUSB1: break control not supported, using simulated break
[    4.071971] usb 1-1.7.4: ch341-uart converter now attached to ttyUSB1
[    6.320620] cdc_acm 1-1.7.1.1.4:1.0: ttyACM0: USB ACM device

EDIT: no, even with these settings the TapTo device doesn't always work...
The only way to make it work flawlessy is completely uncomment the tty2oled startup line in MiSTer startup sequence:

Code: Select all

#!/bin/sh

echo "***" $1 "***"

sh /media/fat/Scripts/cifs_mount.sh


# mrext/tapto
[[ -e /media/fat/Scripts/tapto.sh ]] && /media/fat/Scripts/tapto.sh -service $1

# Startup favorites
[[ -e /media/fat/Scripts/favorites.sh ]] && /media/fat/Scripts/favorites.sh refresh


# mrext/remote
[[ -e /media/fat/Scripts/remote.sh ]] && /media/fat/Scripts/remote.sh -service $1

# Startup tty2oled
# [[ -e /media/fat/tty2oled/S60tty2oled ]] && /media/fat/tty2oled/S60tty2oled $1
AmintaMister
Posts: 313
Joined: Thu Sep 16, 2021 10:54 pm
Has thanked: 840 times
Been thanked: 51 times

Re: tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Unread post by AmintaMister »

Ok, I think I've found a config that seems to work.

user-startup.sh

Code: Select all

#!/bin/sh

echo "***" $1 "***"

sh /media/fat/Scripts/cifs_mount.sh


# mrext/tapto
[[ -e /media/fat/Scripts/tapto.sh ]] && /media/fat/Scripts/tapto.sh -service $1

# Startup favorites
[[ -e /media/fat/Scripts/favorites.sh ]] && /media/fat/Scripts/favorites.sh refresh


# mrext/remote
[[ -e /media/fat/Scripts/remote.sh ]] && /media/fat/Scripts/remote.sh -service $1

# Startup tty2oled
[[ -e /media/fat/tty2oled/S60tty2oled ]] && /media/fat/tty2oled/S60tty2oled $1

Now, with this startup configuration TapTo device is assigned to USB0, tty2oled to USB1:

Code: Select all

[    1.984790] usb 1-1.3: ch341-uart converter now attached to ttyUSB0
[    4.071543] ch341-uart ttyUSB1: break control not supported, using simulated break
[    4.071805] usb 1-1.7.4: ch341-uart converter now attached to ttyUSB1
[    6.328665] cdc_acm 1-1.7.1.1.4:1.0: ttyACM0: USB ACM device

So, in tty2oled-user.ini I set:

Code: Select all

TTYDEV="/dev/ttyUSB1"
MiSTer Consoles
Posts: 150
Joined: Sun Dec 04, 2022 2:42 pm
Has thanked: 143 times
Been thanked: 24 times

Re: tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Unread post by MiSTer Consoles »

AmintaMister wrote: Thu Aug 22, 2024 10:35 pm

Ok, I think I've found a config that seems to work.

user-startup.sh
Now, with this startup configuration TapTo device is assigned to USB0, tty2oled to USB1:

Code: Select all

[    1.984790] usb 1-1.3: ch341-uart converter now attached to ttyUSB0
[    4.071543] ch341-uart ttyUSB1: break control not supported, using simulated break
[    4.071805] usb 1-1.7.4: ch341-uart converter now attached to ttyUSB1
[    6.328665] cdc_acm 1-1.7.1.1.4:1.0: ttyACM0: USB ACM device

Where do you see these messages about which USB each device is assigned to? Is it in the startup output when you SSH into MiSTer?

User avatar
venice
Top Contributor
Posts: 788
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 278 times
Been thanked: 278 times

Re: tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Unread post by venice »

There is a wiki page with, I think, helpful things…

Follow the white rabbit
https://github.com/venice1200/MiSTer_tt ... leshooting

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard (Cardwarez) to me.

User avatar
venice
Top Contributor
Posts: 788
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 278 times
Been thanked: 278 times

Re: tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Unread post by venice »

@all
If you add USB hardware to you mister it can happen that your display get another ttyUSB Port assigned.

Use the dmesg command from the troubleshooting page and start with only the display connected to MiSTer.
Then reboot with the new device connected tho see the difference.
The „lsusb“ command can help as well. Try it.

I am using my tty2oled display at the USB Port with the lowest number to be sure to get a/the low(est) ttyUSB Number assigned.

I add parts of this and the previous posts to post #3
viewtopic.php?p=16725#p16725
Maybe helpful.

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard (Cardwarez) to me.

User avatar
NightShadowPT
Posts: 224
Joined: Mon May 25, 2020 9:56 am
Has thanked: 5 times
Been thanked: 12 times

Re: tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Unread post by NightShadowPT »

Hi,

I am having the exact same problem here... since installing my TapTo reader, my tty2oled stopped working properly.

The symptoms are exactly the same, the screen shows the boot logo, followed by a very quick display of UU, and then Black.

I have tried changing the order in user-startup.sh to have TapTo start first, but didn't work.

Also, if I have the tty2oled connected, my TapTo takes a lot longer to boot... :(

User avatar
NightShadowPT
Posts: 224
Joined: Mon May 25, 2020 9:56 am
Has thanked: 5 times
Been thanked: 12 times

Re: tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Unread post by NightShadowPT »

NightShadowPT wrote: Tue Aug 27, 2024 3:32 pm

Hi,

I am having the exact same problem here... since installing my TapTo reader, my tty2oled stopped working properly.

The symptoms are exactly the same, the screen shows the boot logo, followed by a very quick display of UU, and then Black.

I have tried changing the order in user-startup.sh to have TapTo start first, but didn't work.

Also, if I have the tty2oled connected, my TapTo takes a lot longer to become available to read... :(

User avatar
venice
Top Contributor
Posts: 788
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 278 times
Been thanked: 278 times

Re: tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Unread post by venice »

Did you configure the interfaces of TapTo and tty2oled correctly in your config files and stop the TapTo probing?

I need (to find my) TapTo Hardware at first, then in can do some tests.

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard (Cardwarez) to me.

User avatar
venice
Top Contributor
Posts: 788
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 278 times
Been thanked: 278 times

Re: tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Unread post by venice »

Found it :mrgreen:

Here my config which works with tty2oled and with or without the TapTo Device connected!

First, the ttyUSB Devices.
The first Device in the list is my tty2oled Display, the second is the TapTo Reader.

Code: Select all

/root# dmesg | grep tty
[    1.973877] usb 1-1.2: cp210x converter now attached to ttyUSB0
[    2.190865] usb 1-1.3: cp210x converter now attached to ttyUSB1

Both using an cp210x USB-Serial Chip.

And my tapto.ini File in /media/fat/Scripts/
I have disabled the probing and set the Serial to the correct device.

Code: Select all

[tapto]
connection_string=
allow_commands=false
disable_sounds=false
#probe_device=true    #line commented out
exit_game=false
exit_game_blocklist=
exit_game_delay=0
debug=false
api_port=7497
api_basic_auth=

#serial interface set and probing disabled
reader="pn532_uart:/dev/ttyUSB1
probe_device=false

[systems]

No need for a delay or to change the boot order.
Nothing complicate I think.

//Edit
This configuration is based on my hardware, yours can be different.

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard (Cardwarez) to me.

User avatar
venice
Top Contributor
Posts: 788
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 278 times
Been thanked: 278 times

Re: tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Unread post by venice »

I still wait for Postcards :mrgreen:

See: https://github.com/venice1200/MiSTer_tt ... i/Cardware

IMG_1275.jpeg
You do not have the required permissions to view the files attached to this post.

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard (Cardwarez) to me.

Post Reply