TX-Pi, Raspberry Pi Community-Controller

Community-Firmware (cfw), Selbstbaucontroller (TX-Pi, ftduino, usw.), usw.
Forumsregeln
Bitte beachte die Forumsregeln!
kräml
Beiträge: 151
Registriert: 14 Aug 2020, 06:47

Re: TX-Pi, Raspberry Pi Community-Controller

Beitrag von kräml » 26 Nov 2020, 21:29

Hmh, wie wäre es, anstatt eines Plotters, einen Fischertechnik PenTesterAutomat ;) Der Stift bewegt sich auf dem Display und wird von einer Webcam aufgezeichnet. Die Frage wäre, wie kommt die SD-Karte in den Pi. Hmh, wie wäre es, wenn man mit einem Overlay FS das Raspbian aufspielt? Will heisen man kann Raspbian immer in eine Urzustand zurück fahren. Dann das aktuelle Skript ausführen. Hmh, grumel ...
Gab es da nicht was in noobs oder war es in BerryBoot?

Ah es war bei BerryBoot, dort konnte man ein Backup von einen Image erstellen.

Ich denke bis debian 11 kommt bin, ich noch nicht fertig ... :?

Melde mich, wenn ich was neues weiss und danke für die Infos haben mir sehr geholfen die Sache mit Display und tx-pi zu verstehen.

kraeml

Benutzeravatar
Bjoern
Beiträge: 407
Registriert: 04 Jan 2018, 12:34

Re: TX-Pi, Raspberry Pi Community-Controller

Beitrag von Bjoern » 26 Nov 2020, 21:40

Hi,

ihr könnt doch die SD Karte immer drin lassen und den Inhalt ändern. Müsst halt nur von außen neu booten können.

SD-Karte mit WLAN Interface ist hier das Zauberwort....Nutze wir auch um ein Gerät remotefähig zu machen.

Grüße
Björn

kräml
Beiträge: 151
Registriert: 14 Aug 2020, 06:47

Re: TX-Pi, Raspberry Pi Community-Controller

Beitrag von kräml » 26 Nov 2020, 21:58

Hi,

uh erst beim zweite durchlesen. Das mit Wlan SD ist gut. Habt ihr welche für micro SD-Kartenplätze?

Ja ja ich weiß ecosia fragen.

kraeml

Benutzeravatar
Bjoern
Beiträge: 407
Registriert: 04 Jan 2018, 12:34

Re: TX-Pi, Raspberry Pi Community-Controller

Beitrag von Bjoern » 26 Nov 2020, 22:34

Hi,

so etwas?
https://www.heise.de/news/WLAN-faehige- ... 82099.html

Wir brauchen nur ne SD-Karte. Micro SD keine wirkliche Ahnung.

Björn

kräml
Beiträge: 151
Registriert: 14 Aug 2020, 06:47

Re: TX-Pi, Raspberry Pi Community-Controller

Beitrag von kräml » 27 Nov 2020, 08:58

Hallo,

danke für den Link. Da ist ja auch der ESP drauf. Sehr schön.

Wegen Pi. Leider nehmen die nur kleine SD-Karten. Daher ist der Ansatz genial, wäre ich so nicht drauf gekommen, aber für den Pi out of the box nicht geeignet.

Ja, ja man könnte einen Adapter SD auf micro SD suchen. Aber wer braucht das schon.

Danke für den Hinweis. Für andere Projekte ermöglicht dies ja viel mehr Möglichkeiten.

Kraeml

Benutzeravatar
Bjoern
Beiträge: 407
Registriert: 04 Jan 2018, 12:34

Re: TX-Pi, Raspberry Pi Community-Controller

Beitrag von Bjoern » 27 Nov 2020, 09:04

Hi Kraeml,

gerne doch. Kam bei uns weil wir ein Gerät remotefähig machen wollten. Und da brauchst du zum flashen eines anderen Gerätes in diesem Gerät eine SD-Karte. So klappt das dann perfekt.

Es gibt schon immer wieder interessante DInge die man für eine Automatisierung nutzen kann.

Björn

kräml
Beiträge: 151
Registriert: 14 Aug 2020, 06:47

Re: TX-Pi, Raspberry Pi Community-Controller

Beitrag von kräml » 27 Nov 2020, 09:07

Hallo,

gerade bestellt:

https://www.ebay.de/itm/SD-card-Female- ... 2121684651

Erstaunlich was es alles gibt.

Gruß Michl

Benutzeravatar
Bjoern
Beiträge: 407
Registriert: 04 Jan 2018, 12:34

Re: TX-Pi, Raspberry Pi Community-Controller

Beitrag von Bjoern » 27 Nov 2020, 12:24

Hi,

und damit bekommst du dann auf jeden Fall eine WLAN SD-Karte zum rennen.

Berichte mal ob das DIng was taugt.

Björn

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

Re: TX-Pi, Raspberry Pi Community-Controller

Beitrag von PHabermehl » 27 Nov 2020, 13:42

Also DAS Experiment interessiert mich jetzt auch :mrgreen:
https://www.MINTronics.de -- der ftDuino & TX-Pi Shop!

viele Grüße
Peter

kräml
Beiträge: 151
Registriert: 14 Aug 2020, 06:47

Re: TX-Pi, Raspberry Pi Community-Controller

Beitrag von kräml » 27 Nov 2020, 16:22

Bin auch gespannt. Liegt noch in China. Soll bis mitte Dez. da sein.

Kräml

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

Re: TX-Pi, Raspberry Pi Community Controller

Beitrag von Petabytemax » 14 Dez 2020, 15:01

Liebe Mitarbeiterinnen und Mitarbeiter

Ich hatte einige Probleme damit, den Tx-Pi zum Laufen zu bringen, aber es ist ein brillantes Stück Kit und Community-Aufwand.
Verwendetes RPI-Buster-Image und Skript-Installation, die gut funktioniert und jetzt eine zugängliche Plattform hat.

Ich habe immer noch ein Problem mit dem Touchscreen.
Die Verwendung eines anderen RPI mit dem Raspian-Desktop oder anderen Bildern funktioniert einwandfrei. Wenn ich das RPI und den Bildschirm ohne TX-Pi ausführe, ist dies ebenfalls in Ordnung.
rpi ist rp3b, bildschirm ist waveshare mhs version Bild

so it works on boot up and then if you start to use it after a number of taps it seems to drop responding to touch, display and backlight remain fine and if their is no txpi hat it stays working ( using a decent psu to the pi over microusb in both cases, but have tried different usb 5v PSU and also the hat's power capability )

what strikes me as unusual is that if i bring up a curser ( usb keyboard or mouse ) and then touch the screen the curser arrow disappears coinciding with the touch, so it looks like the hw is ok or not overheating etc

Any ideas what to test ?

unsure if i should use the System, "APT" program to update and then upgrade the RPI's packages or if this could introduce more complications.

Please help as i am hoping to get this working 100% so i can give it to my young boy as his xmas present, and introduce him into the mind expanding world of Fischertecknik !!

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

Re: TX-Pi, Raspberry Pi Community-Controller

Beitrag von MasterOfGizmo » 14 Dez 2020, 15:46

So if you use the ft-HAT, then the touch stops working after some time. If you don't use the ft-HAT then the touchscreen simply works as it should.

Is this right? This would be a rather odd relationship since the touch and the display share the same bus and there's not much that can break physically that makes the touch stop working while the display still works.

Can you tell when exactly the touch stops working?
Für fischertechnik: Arduino ftDuino http://ftduino.de, Raspberry-Pi ft-HAT http://tx-pi.de/hat

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

Re: TX-Pi, Raspberry Pi Community Controller

Beitrag von tintenfisch » 14 Dez 2020, 15:55

Hi Petabytemax,
Petabytemax hat geschrieben:
14 Dez 2020, 15:01
[...]
I'm still experiencing a problem with the touch screen,
using other rpi with the raspian desktop or other images work fine and in fact if i run the rpi and screen without the tx-pi its also fine.
rpi is rp3b, screen is waveshare mhs version Bild
[...]
The embedded image does not work for me, but the link shows an image of a 3.5 MHS screen.
IIRC you've to setup the Raspberry PI with

Code: Alles auswählen

sudo bash ./tx-pi-setup.sh LCD35
Which setup did you use?

Please provide also the output of

Code: Alles auswählen

uname -r
We noticed a couple of issues with more recent kernels and touchscreens so we recommend an older kernel.

Petabytemax hat geschrieben:
14 Dez 2020, 15:01
[...]
unsure if i should use the System, "APT" program to update and then upgrade the RPI's packages or if this could introduce more complications.
It's save to use apt, but we provide also an Apt-App, so you don't have to use the cmd line.
It's in the "TX-Pi-Shop" which is installed by default.

I can explain it in more detail later if this hint isn't sufficient.

Best regards,
Lars

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

Re: TX-Pi, Raspberry Pi Community Controller

Beitrag von Petabytemax » 14 Dez 2020, 19:03

MasterOfGizmo hat geschrieben:
14 Dez 2020, 15:46
So if you use the ft-HAT, then the touch stops working after some time. If you don't use the ft-HAT then the touchscreen simply works as it should.

Is this right? This would be a rather odd relationship since the touch and the display share the same bus and there's not much that can break physically that makes the touch stop working while the display still works.

Can you tell when exactly the touch stops working?
firstly, Apologies with the formatting and any miscommunication, I tried to translate my questions from english to german and put both into the forum but it seems the forum does its own AI or translation and therefore may do a double convert !

I try to answer as best as possible. ( ethernet not wifi used for all tests )
this is a Rpi 3B with Waveshare 3.5" (C) SPI touch screen (MHS hi-speed version), according to the Tx-Pi info this uses the standard Waveshare A driver

using the txpi image for the type A waveshare - https://www.tx-pi.de/images/latest_pi3-35a
The RPI boots and CFW shows fine (SSH wont work but thats a different issue)
a. Without TX-pi hat ( just RPI and screen ) then all the Community firmware apps work and the touchscreen works and stays working ( i usually use calc to test )
b. With the HAt between Rpi and Display - system boots, CFW comes up touch screen works initially but if i leave it for 60-90 seconds or tap some screen buttons ( again calc is a good test ) then after a little while the touch stops responding
first seen when i went in to the TX-PI hat test and turned on a m1 motor slider and then lost touch so couldnt turn it off

Using the recommended Buster Lite image and then running the script with the " sudo bash ./tx-pi-setup.sh LCD35" option for the type A waveshare

The RPI boots and CFW shows fine
now SSH works fine ( initially i did this to see if something in the script killed ssh ) but it works fine

a. Without TX-pi hat ( just RPI and screen ) then all the Community firmware apps work and the touchscreen works and stays working ( i usually use calc to test )

b. With the HAt between Rpi and Display - system boots, CFW comes up touch screen works initially
but if i go into the Tx-pi hat test and leave it for 60-90 seconds and then tap a few buttons it seems the Pi looses the ability to read the screen touches

usually after each press on the screen ( use the stylus as resistive touch screens are best with a more focused press ) the little curer ( arrow) pops up to show when you pressed but when the touch seems to stop responding you can touch the screen and no arrow appears and nothing happens.

any way to restart the touch input from the command line or try to debug/log whats happening ???

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

Re: TX-Pi, Raspberry Pi Community Controller

Beitrag von Petabytemax » 14 Dez 2020, 19:12

Hi Lars,

Sorry the link doesn't work, Yes its the 3.5 MHS screen
I used the correct sh script as you suggest

from Squid/Lars ------We noticed a couple of issues with more recent kernels and touchscreens so we recommend an older kernel.

output of uname -r shows 4.19.118-v7+
is this as expected ?

one thing I did earlier that may have helped was run Sudo RASPI-Config and it did some updating.
does that actually change anything on the PI ?

I.e if I went back to a different SD card would there be any possible state changes in the HW ?
my thinking was the Kernel and anything else is all on the SD card, unsure if the RPI 3 has a bootloader or bios type firmware or equivalent

Petabytemax hat geschrieben:
14 Dez 2020, 15:01
[...]
unsure if i should use the System, "APT" program to update and then upgrade the RPI's packages or if this could introduce more complications.
I did use the APT-APP i think its under the "Tills APP's" dropdown list in the TX-Pi Store

any other way I can log or test whats happening ?

Thanks for everyones help !

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

Re: TX-Pi, Raspberry Pi Community Controller

Beitrag von MasterOfGizmo » 15 Dez 2020, 08:10

Petabytemax hat geschrieben:
14 Dez 2020, 19:03
a. Without TX-pi hat ( just RPI and screen ) then all the Community firmware apps work and the touchscreen works and stays working ( i usually use calc to test )
b. With the HAt between Rpi and Display - system boots, CFW comes up touch screen works initially but if i leave it for 60-90 seconds or tap some screen buttons ( again calc is a good test ) then after a little while the touch stops responding
first seen when i went in to the TX-PI hat test and turned on a m1 motor slider and then lost touch so couldnt turn it off
Ok, that's pretty odd. I wonder if there's some timing "close to the edge" and just the mechanical extension of the expansion port by the HAT triggers this. The HAT is not wired to any signals related to the touch or display. They are not shared or the like. They just pass straight through. But of course the HAT powers everything incl the touch.

Do you power the PI from the HAT in that case? If yes, can you try to mount the HAT but still power the Pi through USB and leave the power input of the HAT unused?

Another thing is that the HAT really is a HAT which means that it has an eeprom to identify itself egainst the system. The display/touch combo is technically not a HAT since it does not itentfy itself that way. MAybe the GPIO configuration is affected by the fact that the HAT is detected by the system at boot time. We could check that.

At least this whole setup (HAT and MHS display) is supposed to work. That's actually what I use to test the HATs and during the tests I also use the touch.
Für fischertechnik: Arduino ftDuino http://ftduino.de, Raspberry-Pi ft-HAT http://tx-pi.de/hat

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

Re: TX-Pi, Raspberry Pi Community-Controller

Beitrag von Petabytemax » 16 Dez 2020, 11:42

unsure if the any timing difference could be that critical.

i have up loaded a video here and you can see that occasionally it does detect the touch ( when im tapping rapidly )
With HAT - touch issues - https://www.youtube.com/watch?v=tS9VARmAcrs
Same system OS+script - touch working without hat https://studio.youtube.com/video/ky7Z4KybUM4
currently i have been using the PI via micro usb ( and a good psu) to power the screen and HAT

Ill try today to use the hat to power everything.

What i was wondering is if there is anything I can run in the shell or command line to see if the screen is responding properly or to detect or resent the touch driver so we can rule out any initialisation ( troubleshooting this is one of the reasons I was so keen to get SSH working )

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

Re: TX-Pi, Raspberry Pi Community-Controller

Beitrag von MasterOfGizmo » 19 Dez 2020, 20:07

Just to make sure that there's nothing that has changed on raspbian/software side that may prevent the touch from working i have just done a fresh install with the MHS display on a raspberry pi powered via the HAT. The result is working nicely and I don't encounter any issues with the touch.

Tomorrow I'll do the same with a Pi3, to test a setup identical to yours. You don't happen to have access to a different display? Maybe even one of those ultra cheap (a) types? Just to make sure it's not an issue with your particular screen.

Edit: The setup consisting of Pi3B + MHS-3.5" + ft-HAT also works as expected ...
Für fischertechnik: Arduino ftDuino http://ftduino.de, Raspberry-Pi ft-HAT http://tx-pi.de/hat

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

Re: TX-Pi, Raspberry Pi Community Controller

Beitrag von Petabytemax » 21 Dez 2020, 23:21

thanks masterofgizmo, really hope you can help isolate the cause .

I don't have a different screen but may try to buy one if you think this is issue, just didnt want to spend on an older A or B model if these high speed MHS versions are an improvement I was wondering if the hi speed SPI could be part of the issue here but as you say the MHS is also the version you're using. I got mine for about €15 from https://www.ebay.co.uk/itm/303585121708 ( does that look typical to you )

to troubleshoot
1 used the Hat to power via a FT accu cell or via the FT transformer, same result intermittent touch once the hat is inserted
2 remove the connection to the HDMI monitor while I was testing but the result is the same

Have now built with a fresh Rasberry pi OS to remove any of the CFW or image variables from the equation.

Without hat ( just rpi and screen) touch is working smoothly
with hat installed the os works fine but the touch becomes unresponsive ( cant text the hat as no app is available to address it)

Also tried with a pi 3b+ ( metal IHS and wifi can etc ) but the same issues apply

Either
1) i have a faulty hat that is surpressing or degrading the signals that the MHS screen uses for touch controls
2) I have a faulty screen that is more susceptible to issues than usual.


Any other ideas, im getting desperate !!

best regards Max

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

Re: TX-Pi, Raspberry Pi Community-Controller

Beitrag von MasterOfGizmo » 23 Dez 2020, 12:43

Hi,

what happens if you power the Pi from USB while the HAT is installed but not being powered itself? If you do that there are only two things left the may imho have an affect at all:

a) the pure existance of the additional connector between Pi and touch which will may make an already bad signal become ven worse
b) the eeprom on the HAT which is detected by the Pi at boot time and may cause it to behave a little different. Although I doubt this is the problem. But who knows ...

The EEPROM can be read and written using these tools: https://github.com/raspberrypi/hats/tre ... epromutils

One could use these tools to simply erase the eeprom:

Code: Alles auswählen

dd if=/dev/zero of=blank.eep bs=1k count=4
sudo ./eepflash.sh -d=0 -t=24c32 -w -f=blank.eep
The first command creates a blank image and the second one writes the blank image to the eeprom. This won't hurt as currently no software makes use of this eeprom and we can easily restore the original contents.

Where are you located? If the problem persists you could send me display and HAT and I take a look.
Für fischertechnik: Arduino ftDuino http://ftduino.de, Raspberry-Pi ft-HAT http://tx-pi.de/hat

Antworten