TX-Pi, Raspberry Pi Community-Controller

Community-Firmware (cfw), Selbstbaucontroller (TX-Pi, ftduino, usw.), usw.
Forumsregeln
Bitte beachte die Forumsregeln!
Petabytemax
Beiträge: 18
Registriert: 06 Dez 2020, 22:34

Re: TX-Pi, Raspberry Pi Community-Controller

Beitrag von Petabytemax » 23 Dez 2020, 23:30

Hi master

have tried to power the pi directly via microusb ( instead of via the hat)
but unfortunately doesn't seem to make a difference

Tried your code

Code: Alles auswählen

pi@tx-pi:~ $ dd if=/dev/zero of=blank.eep bs=1k count=4
4+0 Datensätze ein
4+0 Datensätze aus
4096 bytes (4,1 kB, 4,0 KiB) copied, 0,00122937 s, 3,3 MB/s
pi@tx-pi:~ $ sudo ./eepflash.sh -d=0 -t=24c32 -w -f=blank.eep
sudo: ./eepflash.sh: Befehl nicht gefunden
pi@tx-pi:~ $
which also didn't help

At this point it seems random, its bizarre that the screen any everything works without the hat and on occasion its seems to all work together until i reboot or run an app or something ( at one point it seemed to be better when Bluetooth was turned off, but the next day with Bluetooth on or off it still did not work )
right now I feel it may be a screen issue , so have ordered a new 3.5 "A" non MHS screen that hopefully will come tomorrow.
Zuletzt geändert von Petabytemax am 27 Dez 2020, 09:09, insgesamt 1-mal geändert.

tintenfisch
Beiträge: 472
Registriert: 03 Jan 2018, 22:04

Re: TX-Pi, Raspberry Pi Community Controller

Beitrag von tintenfisch » 25 Dez 2020, 14:19

Petabytemax hat geschrieben:
14 Dez 2020, 19:12
[...]
output of uname -r shows 4.19.118-v7+
is this as expected ?
[...]
Sorry for the late response, yes the kernel version is correct.

tintenfisch
Beiträge: 472
Registriert: 03 Jan 2018, 22:04

Re: TX-Pi, Raspberry Pi Community-Controller

Beitrag von tintenfisch » 26 Dez 2020, 21:33

kräml hat geschrieben:
03 Sep 2020, 16:35
[...]
Einen Vorschlag hätte ich noch zum Deaktivieren "wait for network" in den Boot Options. Mit folgende Code

Code: Alles auswählen

sudo raspi-config nonint do_boot_wait 1
kann das wait for network deaktiviert werden. Dann braucht man dies nicht mehr mit raspi-config einstellen. Oder anders ausgedrückt, der User kann dies nicht mehr vergessen.
Ich habe noch einmal nachgesehen, das sollte bereits damals aktiviert gewesen sein.
Ich dachte wir hätten es vergessen, aber das ist im Setup-Script bereits enthalten.
kräml hat geschrieben:
03 Sep 2020, 16:35

Code: Alles auswählen

sudo raspi-config nonint do_hostname tx-pi
Ich war zunächst dagegen, dies einzubauen, aber ich denke wir haben einen guten Kompromiss gefunden: Der Name wird nur geändert, wenn er auf "raspberrypi" lautet. Wenn ein Nutzer bereits einen anderen Hostname vergeben hat, wird das respektiert und nicht überschrieben.
Gleichzeitig werden vorhandene SSH-Schlüssel gelöscht und neue generiert.

Danke für die Vorschläge …und Geduld ;)

Viele Grüße
Lars

tintenfisch
Beiträge: 472
Registriert: 03 Jan 2018, 22:04

Re: TX-Pi, Raspberry Pi Community-Controller

Beitrag von tintenfisch » 26 Dez 2020, 22:48

Hallo zusammen,

wir haben ein aktualisiertes Setup-Script für den Raspberry Pi veröffentlicht.

Die Änderungen sind überschaubar:

* Ändern des Hostname auf "tx-pi", sofern der Hostname auf "raspberrypi" lautet
* Aufräumen von ungenutzten Paketen

Für Anwender, die bereits den TX-Pi eingerichtet haben, lohnt sich der Download des Setup-Scriptes somit kaum, resp. werden sie vermutlich keinen Unterschied zum vorherigen Script feststellen, denn das Augenmerk lag eher auf einer einfacheren Installation ohne zusätzliche manuelle Vorbereitungen denn auf neuen Features.

Neue Anwender können sich nach der Installationsanleitung
* (de) https://www.tx-pi.de/de/installation/
* (en) https://www.tx-pi.de/en/installation/
richten.

Aktualisierte Images, die das Problem mit dem SSH-Server beheben, bieten wir derzeit nicht an, werden aber in den nächsten Tagen folgen.

Viele Grüße
Lars

Petabytemax
Beiträge: 18
Registriert: 06 Dez 2020, 22:34

Re: TX-Pi, Raspberry Pi Community Controller

Beitrag von Petabytemax » 26 Dez 2020, 23:24

Hi Squid & Master.

Have made some progress and now have a new screen 3.5"
this is a "garsent" Raspberry Screen, 3.5 inch 480x320 TFT LCD Touch Screen HDMI Monitor for Raspberry Pi.
its meant to be waveshare but its actually looking more like an Elegoo https://www.elegoo.com/products/elegoo- ... lcd-screen

the good news its its not having the touch dropping out like the MHS high speed was

here are the 2 screens next to each other
Bild

the bad news is the touch axis is swapped v & h ....

i need to swap the following

Code: Alles auswählen

  “SwapAxes” “1” into “SwapAxes” “0"  in the config file
 /etc/X11/xorg.conf.d/99-calibration.conf
and then run the following commands

Code: Alles auswählen

sudo dpkg -i -B xinput-calibrator_0.7.5-1_armhf.deb
DISPLAY=:0.0 xinput_calibrator
problem is i cant find the "LCD-show/" directory


reading the TX-Pi setup script i can see it copies that directory from the git
but if i try to find it, i cant see anything.

where is that directory in the txpi image

tintenfisch
Beiträge: 472
Registriert: 03 Jan 2018, 22:04

Re: TX-Pi, Raspberry Pi Community Controller

Beitrag von tintenfisch » 26 Dez 2020, 23:42

Hi Petabytemax,
Petabytemax hat geschrieben:
26 Dez 2020, 23:24
[...]
the bad news is the touch axis is swapped v & h ....

i need to swap the following

Code: Alles auswählen

  “SwapAxes” “1” into “SwapAxes” “0"  in the config file
 /etc/X11/xorg.conf.d/99-calibration.conf
and then run the following commands
[...]
Maybe you can give the "Config" app a try: "System" -> "Config" and then use the "Hamburger button" to select "Display".
Use a different value for the "Rotation" value and restart the device.
Petabytemax hat geschrieben:
26 Dez 2020, 23:24

problem is i cant find the "LCD-show/" directory

reading the TX-Pi setup script i can see it copies that directory from the git
but if i try to find it, i cant see anything.
The setup script creates the directory but it deletes it after the initial setup.

It does not exist in our distribution images.

If the Config app does not work, you can download LCD-Show again:

Code: Alles auswählen

wget -N https://www.waveshare.com/w/upload/0/00/LCD-show-170703.tar.gz
tar xvfz LCD-show-170703.tar.gz
Anyway, I'd be more interested in your experience with the Config app. ;)

Best regards,
Lars

tintenfisch
Beiträge: 472
Registriert: 03 Jan 2018, 22:04

Re: TX-Pi, Raspberry Pi Community-Controller

Beitrag von tintenfisch » 27 Dez 2020, 00:31

kräml hat geschrieben:
14 Aug 2020, 07:13
[...]
Das Image ging, nachdem ich feststellen musste das ich ein 3,5 V2 habe und die Farben deshalb so schlecht waren. Leider konnte ich mich via SSH nicht auf den tx-pi einloggen. Auch eine Datei im boot-Verzeichnis half nichts.
Das lag nicht an Dir, das ist unser Fehler.

Da Du das mit dem Ausführen des Setup-Scripts auf einem frischen Raspberry Pi OS behoben hattest, haben wir das Problem leider zu spät realisiert. Erst nachdem @Petabytemax von ähnlichen Problemen berichtet hat, haben wir bemerkt, dass die Images es nicht erlauben, sich per SSH einzuloggen.

Dies sollte auch eine Ermunterung an (neue) Anwender sein, Probleme frühzeitig zu melden und uns Fehler zu melden.

Wir sind nur ein kleines Team und evtl. manchmal betriebsblind; da mag uns auch mal etwas entgehen, was einen neuen Anwender nervt, auffällt oder gar von der Inbetriebnahme eines TX-Pi abhält.

Sofern Euch das Setup oder die Images nicht zum Erfolg verhelfen, meldet Euch. Wir sind daran interessiert, dass der TX-Pi (in zumindest jedem dritten Haushalt) problemlos läuft.

Viele Grüße
Lars

Petabytemax
Beiträge: 18
Registriert: 06 Dez 2020, 22:34

Re: TX-Pi, Raspberry Pi Community Controller

Beitrag von Petabytemax » 27 Dez 2020, 00:33

tintenfisch hat geschrieben:
26 Dez 2020, 23:42

Maybe you can give the "Config" app a try: "System" -> "Config" and then use the "Hamburger button" to select "Display".
Use a different value for the "Rotation" value and restart the device.

Anyway, I'd be more interested in your experience with the Config app. ;)

Best regards,
Lars
Hi squid, thanks for the reply

I tried the config and it worked to rotate the screen,
unfortunately my screen was displaying correctly ! so i'm now on my side,
( no problem easy fix to revert)

the issue I had is that the touch axis are wrong though USB mouse and KB work fine
it seems that although i tried TS calibration it doesn't fix it
i.e. if you move the touch position left the cursor on screen rises up
and vice versa ( drag finger up arrow goes left )

its like if you took off the resistive element and rotated ( or inverted it ) you would have the issue im seeing,

that's why I wanted to adjust the config. in "raspberry Pi OS" I have the same touch issue after the lcdshow install but I can fix it editing the config.

on a separate note, any idea what is the correct process to show pictures,
i'm using a link that works from my browser, and using the forum picture /img tags
but it doesn't show up

tintenfisch
Beiträge: 472
Registriert: 03 Jan 2018, 22:04

Re: TX-Pi, Raspberry Pi Community Controller

Beitrag von tintenfisch » 27 Dez 2020, 11:13

Petabytemax hat geschrieben:
27 Dez 2020, 00:33
I tried the config and it worked to rotate the screen,
unfortunately my screen was displaying correctly ! so i'm now on my side,
( no problem easy fix to revert)

the issue I had is that the touch axis are wrong though USB mouse and KB work fine
it seems that although i tried TS calibration it doesn't fix it
i.e. if you move the touch position left the cursor on screen rises up
and vice versa ( drag finger up arrow goes left )
I see.

I've had the same problem with a display before. But I don't know how I solved it… :?

I think I tried a couple of values for "Rotation" (e.g. 180 instead of 0) and it worked.

Petabytemax hat geschrieben:
27 Dez 2020, 00:33
on a separate note, any idea what is the correct process to show pictures,
i'm using a link that works from my browser, and using the forum picture /img tags
but it doesn't show up
I've no idea, but you can use "Dateianhänge" and upload an image and use the option "Im Beitrag anzeigen":

DSC_0712.JPG
DSC_0712.JPG (127.8 KiB) 8243 mal betrachtet

tintenfisch
Beiträge: 472
Registriert: 03 Jan 2018, 22:04

Re: TX-Pi, Raspberry Pi Community Controller

Beitrag von tintenfisch » 27 Dez 2020, 11:25

Petabytemax hat geschrieben:
27 Dez 2020, 00:33
[...]
the issue I had is that the touch axis are wrong though USB mouse and KB work fine
Just in case you don't already know: TX-Pi provides access via VNC (enabled by default), you don't need physical access to your device.
Use the following URL http://IP-ADDRESS-OF-YOUR-TX-PI/remote/ and you can use your mouse / keyboard to operate on the device.

Benutzeravatar
MasterOfGizmo
Beiträge: 2720
Registriert: 30 Nov 2014, 07:44

Re: TX-Pi, Raspberry Pi Community-Controller

Beitrag von MasterOfGizmo » 27 Dez 2020, 11:28

You definitely have an odd set of Displays there. While I am sure the PCBs are the same as genuine Waveshare displays (they usually do 1:1 copies) the touch layer they use on top of the display may vary. What does the vendor say which driver to use?

Edit:

It's /usr/share/X11/xorg.conf.d/99-calibration.conf which has the option to swap the touch axes. Just change the paramter

Code: Alles auswählen

Option  "SwapAxes"      "1"
From 1 to 0 or vice versa. This worked for me and broke the axes. So this should allow you to fix them.
Zuletzt geändert von MasterOfGizmo am 27 Dez 2020, 11:54, insgesamt 1-mal geändert.
Arduino für fischertechnik: ftDuino http://ftduino.de, ftDuino32 http://ftduino.de/32

Benutzeravatar
PHabermehl
Beiträge: 2429
Registriert: 20 Dez 2014, 22:59
Wohnort: Bad Hersfeld

Re: TX-Pi, Raspberry Pi Community-Controller

Beitrag von PHabermehl » 27 Dez 2020, 11:52

Hi all together,

Sorry for my long lasting silence, but it's merely family time these days.

I experienced similar issues with several kinds of cloned displays. Sometimes I could fix it simply by calibrating the touch screen, sometimes I needed to install the dedicated drivers supplied by the vendor.

Actually that's the reason why I added the "NODISP" option to the install script.

If you go that way and use some no name clone, the best advice is to install your TX-Pi manually by using the script and NODISP option plus also installing the display drivers manually afterwards.
In the worst case you should not run the config app for display rotation and ts calibration because they may screw up the display config for those ubiquious displays and you even might have to re-install your TX-Pi.

Kind regards
Peter
====================================0
DeepL Translation:

Hallo alle zusammen,

entschuldigt bitte mein langes Schweigen, aber es ist zur Zeit einfach Familienzeit.

Ich hatte ähnliche Probleme mit mehreren Arten von geklonten Displays. Manchmal konnte ich es einfach durch Kalibrierung des Touchscreens beheben, manchmal musste ich die vom Hersteller mitgelieferten speziellen Treiber installieren.

Das ist eigentlich der Grund, warum ich die Option "NODISP" in das Installationsskript aufgenommen habe.

Wenn Sie diesen Weg gehen und irgendeinen No-Name-Klon verwenden, ist der beste Rat, den TX-Pi manuell zu installieren, indem Sie das Skript und die NODISP-Option verwenden und danach auch die Display-Treiber manuell installieren.
Im schlimmsten Fall sollten Sie die Config-App für Display-Rotation und ts-Kalibrierung nicht ausführen, da sie die Display-Konfiguration für diese allgegenwärtigen Displays vermasseln können und Sie Ihren TX-Pi eventuell sogar neu installieren müssen.

Viele Grüße
Peter

Übersetzt mit www.DeepL.com/Translator (kostenlose Version)
https://www.MINTronics.de -- der ftDuino & TX-Pi Shop!

viele Grüße
Peter

Petabytemax
Beiträge: 18
Registriert: 06 Dez 2020, 22:34

Re: TX-Pi, Raspberry Pi Community Controller

Beitrag von Petabytemax » 28 Dez 2020, 22:38

tintenfisch hat geschrieben:
27 Dez 2020, 11:25
Petabytemax hat geschrieben:
27 Dez 2020, 00:33
[...]
the issue I had is that the touch axis are wrong though USB mouse and KB work fine
Just in case you don't already know: TX-Pi provides access via VNC (enabled by default), you don't need physical access to your device.
Use the following URL http://IP-ADDRESS-OF-YOUR-TX-PI/remote/ and you can use your mouse / keyboard to operate on the device.
Hi Squid, thanks, I was aware of VNC and its very usefull as you suggest.

Petabytemax
Beiträge: 18
Registriert: 06 Dez 2020, 22:34

Re: TX-Pi, Raspberry Pi Community-Controller

Beitrag von Petabytemax » 28 Dez 2020, 23:06

MasterOfGizmo hat geschrieben:
27 Dez 2020, 11:28
You definitely have an odd set of Displays there. While I am sure the PCBs are the same as genuine Waveshare displays (they usually do 1:1 copies) the touch layer they use on top of the display may vary. What does the vendor say which driver to use?

Edit:

It's /usr/share/X11/xorg.conf.d/99-calibration.conf which has the option to swap the touch axes. Just change the paramter

Code: Alles auswählen

Option  "SwapAxes"      "1"
From 1 to 0 or vice versa. This worked for me and broke the axes. So this should allow you to fix them.
Hi Master,
Appreciate you sharing the location, it got me closer but swapping the axis in the config file didn't work
this is strange as it did work in rasberry pi OS (hence the reason i wanted to find the config location )

I agree that these displays are a total pain, getting the right ones is hard as so many are unavailable or sold out, and ordering from ebay is a lucky dip what you actually get.

I now have two versions ( wish the MHS hi speed one worked ) and if there was more time i may go for the DSI compatible 5inch https://www.waveshare.com/5inch-dsi-lcd.htm as that works with the rpi DSI connector (so you can use all gpio), has a backlight control, a better capacitive touch and does not need a driver

As this is proving a such struggle the little boy got a toy drone for xmas instead of this Tx-Pi
this at least gives me a short extension as his birthday is 14th Jan and as he now has the drone I need to get this into a fit state to be his present !

So I rebuilt a fresh image with the recommended buster image and tried as peter suggested to install the tx-pi setup script with the NODISP option, this part seemed to work but there was no way to install the screen drivers afterwards

i tried it the other way round

fresh image
enable SSH
sudo raspi-config
apt get-update & apt-get upgrade
then installed the screen drivers
this part worked ok ( though i had to install git manually ) and their seemed to be some errors

I then

Code: Alles auswählen

wget https://tx-pi.de/tx-pi-setup.sh
and ran the setup scrip with NODISP as peter suggested

Code: Alles auswählen

sudo bash ./tx-pi-setup.sh NODISP


we are now close (hopefully)
1) the txt CFW came up after boot which was good
2) but the orientation was landscape not portrait
3) there was no display utility in the config app in system
4) so I edited the Config.txt in the boot directory to change the display from 90 to 180

Code: Alles auswählen

dtoverlay=tft35a:rotate=180
5) the touch screen was still wrong ( x axis was ok , Y was inverted) off so I ran the TS-Sal App in the system folder
this fixes the issue and all seems ok

until i reboot and it then the axis is wrong again
Any ideas why its not accepting the TS-cal new configs ?
is it something in the NODISP option ?



whole screen was lands

tintenfisch
Beiträge: 472
Registriert: 03 Jan 2018, 22:04

Re: TX-Pi, Raspberry Pi Community-Controller

Beitrag von tintenfisch » 29 Dez 2020, 10:20

Petabytemax hat geschrieben:
28 Dez 2020, 23:06
[...]
i tried it the other way round

fresh image
enable SSH
sudo raspi-config
apt get-update & apt-get upgrade
I'd recommend to skip the

Code: Alles auswählen

apt-get update & apt-get upgrade
step and run the

Code: Alles auswählen

tx-pi-setup.sh
on a fresh Raspian installation since the script pins some packages and does the update / upgrade step anyway.
Petabytemax hat geschrieben:
28 Dez 2020, 23:06
4) so I edited the Config.txt in the boot directory to change the display from 90 to 180

Code: Alles auswählen

dtoverlay=tft35a:rotate=180
Which driver do you use?

Petabytemax hat geschrieben:
28 Dez 2020, 23:06
[...]
5) the touch screen was still wrong ( x axis was ok , Y was inverted) off so I ran the TS-Sal App in the system folder
this fixes the issue and all seems ok

until i reboot and it then the axis is wrong again
The TS-Cal app just modifies the option "Calibration" in

Code: Alles auswählen

/usr/share/X11/xorg.conf.d/99-calibration.conf
and does not change any value regarding the axes.

Regarding the inverted y-axis:

Try to modify the

Code: Alles auswählen

/usr/share/X11/xorg.conf.d/99-calibration.conf

Code: Alles auswählen

Section "InputClass"
[…]
    Option  "InvertY"   "1" 
Either add the Option

Code: Alles auswählen

Option  "InvertY"   "1"
or change the value from "1" to "0" or vice versa.

Best regards,
Lars

tintenfisch
Beiträge: 472
Registriert: 03 Jan 2018, 22:04

Re: TX-Pi, Raspberry Pi Community-Controller

Beitrag von tintenfisch » 03 Jan 2021, 16:55

Frohes neues Jahr zusammen,

dieses beginnt nun mit neuen SD-Images, die das Problem mit dem SSH-Zugang beheben.

Allen, die das Problem nicht bereits selbständig gelöst haben, seien die neuen SD-Karten Images ans Herz gelegt.

Über Rückmeldungen würden wir uns freuen.

Download der SD-Karten (für Raspberry Pi 3 und 4 sowie für die Displays 3,2", 3,5" A, 3,5" B und 3,5" B Version 2) wie immer unter
https://www.tx-pi.de/images/

Viele Grüße
Lars

Benutzeravatar
PHabermehl
Beiträge: 2429
Registriert: 20 Dez 2014, 22:59
Wohnort: Bad Hersfeld

Re: TX-Pi, Raspberry Pi Community-Controller

Beitrag von PHabermehl » 03 Jan 2021, 21:07

Klasse, Lars,

vielen Dank für die ganze Arbeit. Ich schließe mich deinen Worten gern an: wir würden uns über Rückmeldung sehr freuen!

Viele Grüße
Peter
https://www.MINTronics.de -- der ftDuino & TX-Pi Shop!

viele Grüße
Peter

tintenfisch
Beiträge: 472
Registriert: 03 Jan 2018, 22:04

Re: TX-Pi, Raspberry Pi Community-Controller

Beitrag von tintenfisch » 07 Jan 2021, 23:44

Petabytemax hat geschrieben:
28 Dez 2020, 23:06
[...]I agree that these displays are a total pain, getting the right ones is hard as so many are unavailable or sold out, and ordering from ebay is a lucky dip what you actually get.
[...]
Any progress on this matter? Please note that we released updated images which should solve the SSHd problem.

Best regards,
Lars

Petabytemax
Beiträge: 18
Registriert: 06 Dez 2020, 22:34

Re: TX-Pi, Raspberry Pi Community-Controller

Beitrag von Petabytemax » 08 Jan 2021, 11:17

Happy new year to all at the FTC community !

thankfully and with help from many here ( as well as a little detective work ) I finally have the Tx-Pi working with a responsive touch screen.

this is great news and will be a fantastic birthday present for our young son next weekend.

as this screen ( Garsent brand, but seems identical to https://www.elegoo.com/products/elegoo- ... lcd-screen )
seems to use the "goodTFT" driver i had to do a manual Tx-Pi scripted install and then

Code: Alles auswählen

git clone https://github.com/goodtft/LCD-show.git
chmod -R 755 LCD-show
cd LCD-show/
sudo ./LCD35-show
this worked but the axis were wrong, however using the options shared by "TinTenFisch"
Option "InvertY" "1"

I managed to get the touch responding correctly

tintenfisch
Beiträge: 472
Registriert: 03 Jan 2018, 22:04

Re: TX-Pi, Raspberry Pi Community-Controller

Beitrag von tintenfisch » 08 Jan 2021, 11:44

Hi Max,
Petabytemax hat geschrieben:
08 Jan 2021, 11:17
[...]I finally have the Tx-Pi working with a responsive touch screen.

this is great news and will be a fantastic birthday present for our young son next weekend.

[...]
Thanks for your feedback. I'm glad it works now. Have fun with the TX-Pi.

Best regards,
Lars

Antworten