Diskussions- und Newsboard des DARC-Ortsverbandes I40
allgemeine Kategorie => mcHF Projekt Deutsch / English (here you can discuss everything related to mcHF) => Message started by: Laddieter on 05. January 2018, 10:34:39

Title: [gelöst] Touch Funktion nicht mehr verfügbar
Post by: Laddieter on 05. January 2018, 10:34:39

Hallo, liebe mcHF Freunde,
bei meinem V4 mcHF, SW: D2.7.54, geht die Touchfunktion nicht mehr.
Wenn ich durch langes Drücken der Powertast in den Button Testmode gehe,
kommt der Hinweis: Touch controller not Present.
Hat jemand eine Idee, wo das Problem liegt?
Schöne Grüße
Dieter, DL1LAD

Title: Re:Touch Funktion nicht mehr verfügbar
Post by: BO_Andy on 05. January 2018, 11:38:41

Bei der neuen firmenware muss der touchsreen erst kalibriert werde dazu drück du im ausgeschlagen Zustand die power +menü taste und touchsreen bis das blau hinweisfester zur Validierung kommt danach wird alles erklärt was zu tun ist auf den Bildschirm.

LG BO_Andy

Title: Re:Touch Funktion nicht mehr verfügbar
Post by: SP9BSL on 05. January 2018, 11:57:45

Hello Dieter,
could you give us more data?
1. Is this mcHF touch worked before the upgrade to D2.7.54?
2. Which lcd module/touch controller you have?

Title: Re:Touch Funktion nicht mehr verfügbar
Post by: DF8OE on 05. January 2018, 13:07:07

Das ist in der Tat sehr interessant.

Kannst Du bitte mal eine ältere FW probieren und dann berichten ob es dann wieder geht? Und wenn: mit welcher hast Du getestet?

vy 73
Andreas

Title: Re:Touch Funktion nicht mehr verfügbar
Post by: Laddieter on 05. January 2018, 16:54:14

Hallo Andreas,
also die Touchscreen Funktion geht bei meinem mcHF bis zur SW Version 48.
Gruß
Dieter, DL1LAD

Title: Re:Touch Funktion nicht mehr verfügbar
Post by: DF8OE on 05. January 2018, 17:07:31

Wir (bzw. Slawek SP9BSL) haben eine Kalibrierung für den TC eingeführt. Das Positive: nach der Kalibrierung ist der TC wesentlich präziser. Das Negative: Wenn man die Kalibrierung noch nicht ausgeführt hat, geht er gar nicht mehr.

Hast Du beim Start schon mal irgendwo auf den TC getippt und den Stift solange gedrückt gehalten, bis Du in der Kalibrierroutine gelandet bist?

vy 73
Andreas

Title: Re:Touch Funktion nicht mehr verfügbar
Post by: Laddieter on 05. January 2018, 17:38:03

Hallo Andreas,
alles Okay. Nachdem ich in der FW 49 die TC Kalibrierung durchgeführt habe,
funktioniert auch in der aktuellen FW Version 54 die TC -Funktion.
Vielen Dank für die schnelle Hilfe.
Schönen Gruß
Dieter, DL1LAD

Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: OE1FHB on 06. January 2018, 08:27:40

Hallo Andreas !
Mir ist aufgefallen ,daß in den letzten Versionen von FW (51-55) beim
TC kalibrieren als 5.Position die Kalibrierung noch einmal auf Pos.
li. unten wiederholt wird , bei Version 50 war das in Schirmmitte.
Ist das gewollt ?
vy 73 Friedrich
OE1FHB

Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: DF8OE on 06. January 2018, 08:29:48

Da ich bereits kalibriert hatte, ist mir das nicht aufgefallen. Ich werde Slawek fragen - denke aber, dass das so nicht gewollt ist.

vy 73
Andreas

Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: OE1FHB on 06. January 2018, 08:48:37

Hallo Andreas !
Ich habe mich vertippt,es ist die re. Untere Pos. die zweimal kalibriert
wird.
Vy 73 Friedrich

Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: OE1FHB on 06. January 2018, 12:27:11

Hallo Andreas & Slawek ,danke für die Behebung des Kalib. Fehler.
Bei Version 56 wird der 5. Punkt wieder in Schirmmitte kalibriert.
Vy73 Friedrich
OE1FHB

Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: hb9bdm on 19. March 2018, 08:39:10


Was macht man, wenn Touchscreen nicht verdrahted ist und die Error Meldung bei jedem Start erscheint aber man trotzdem die neuesten Versionen benutzen moechte? Wie komme ich da drum herum?

73 Chris

Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: DF8OE on 19. March 2018, 08:53:35

Der Touchscreen ist mittlerweilen "mandatory". Bedeutet:

Entweder den Touchscreen verdrahten, oder jedesmal die Fehlermeldung sehen.

Wer dieses "mandatory" nicht akzeptieren will, müsste sich die Firmware patchen.

vy 73
Andras

Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: DB4PLE on 19. March 2018, 13:21:55

Hallo Chris,

die Meldung bezüglich des nicht kalibrierten Touchscreens kommt nur, wenn ein Touchscreenkontroller erkannt wurde. Macht ja sonst auch keinen Sinn.

Wer also seinen Touchscreenkontroller sträflicherweise nicht anschließt, sieht auch keine Meldung.

Wer seinen Touchscreencontroller per SPI verbindet, aber beim TP_IRQ keine Verbindung herstellt, bekommt die Meldung und sollte entweder den Touchkontroller SPI deaktivieren oder besser den TP_IRQ richtig verbinden.

73
Danilo

Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: hb9bdm on 22. March 2018, 08:04:14

Danke Danilo

73 Chris

Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: OE1FHB on 03. April 2018, 12:22:10

Beobachte seit FW 2.9.7 bis FW 2.9.20 das sich Touchscreen Funktion aufhängt beim mehrmaligen Bandwechsel oder Magnifywechsel.
Danach ist Frequenzwechsel durch touch nicht mehr möglich.
Ebenso blockiert Umschaltung Scope, Wasserfall und Dual nicht mehr.
Kalibrieren schafft keine Abhilfe.
Bootloader 4.0.0
Display HY28A Parallel Mod.
i2C1 180 kHz
i2C2 180 kHz

VY73 Friedrich
OE1FHB

Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: DF8OE on 03. April 2018, 12:35:44

Kann ich mal wieder nicht bestätigen. Weder auf dem OVI40 noch auf dem mcHF. Ich kann touchen und schalten so lange ich will - alles ufb. Hast Du mal versucht, den I2C-Speed zu reduzieren? Bei 100KHz läuft es selbst bei ungünstigen Hardwareverhältnissen. Meine Speeds stehen auf 320KHz - aber ich habe auch alles hardwareseitig getan, damit das laufen kann...

vy 73
Andreas

Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: peter_77 on 03. April 2018, 12:43:53

Ich hab sie auf 240 respektive 270 und da rennt auch alles fehlerfrei.

Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: OE1FHB on 03. April 2018, 12:46:37

Habe reduziert auf 100 kHz, Ausfall dadurch nicht behoben.


Vy 73 Friedrich

Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: DB4PLE on 03. April 2018, 12:54:45

Hallo Friedrich,

geht die Tastenbedienung noch ohne Problem wenn der Touchscreen nicht mehr richtig reagiert?

73
Danilo

Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: OE1FHB on 03. April 2018, 13:25:11

Hallo Danilo,
Tastenbedienung möglich nur Touchbedienung nicht möglich.
Wie beschrieben bei FW 2.9.6 tritt das nicht auf.

Friedrich

Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: SP9BSL on 03. April 2018, 20:48:13

Hi all,
I can confirm this strange behaviour on mcHF. This occurs after some touch activity. Some investigation with scope and found that TP_IRQ stops responding after some time. Although I do not see significant changes in the code since 2.9.6 regarding TS, which could be responsible for this. This hang occurs on both displays 2.8" and 3.5 with different touch controllers/parallel interface. I discovered this few weeks ago but thought that my lcd has a failure. Today connected the 2.8 and see the same behaviour. I often restart STM while coding/debugging, so, this was not annoying for me as yet. For me touch works again after reset. For sure: we both have the same hardware issue or there is a bug in firmware... Search will continue...

Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: DF8OE on 04. April 2018, 04:29:42

I have tested on mcHF with 2.8 and 3.2 LCD - no issue reproduceable...

vy 73
Andreas

Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: DB4PLE on 04. April 2018, 06:21:44

Hi Slawek,

Quote from: SP9BSL on 03. April 2018, 20:48:13
Hi all,
I can confirm this strange behaviour on mcHF. This occurs after some touch activity. Some investigation with scope and found that TP_IRQ stops responding after some time. Although I do not see significant changes in the code since 2.9.6 regarding TS, which could be responsible for this. This hang occurs on both displays 2.8" and 3.5 with different touch controllers/parallel interface. I discovered this few weeks ago but thought that my lcd has a failure. Today connected the 2.8 and see the same behaviour. I often restart STM while coding/debugging, so, this was not annoying for me as yet. For me touch works again after reset. For sure: we both have the same hardware issue or there is a bug in firmware... Search will continue...


Can you confirm that 2.9.6 does not have the issue but 2.9.7 does?

73
Danilo

Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: SP9BSL on 04. April 2018, 06:37:35

Will check this at evening today.

Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: SP9BSL on 04. April 2018, 11:57:34

It happened that i'm earlier in home today becuse of local bio-hazard caused by my son's kindergarten...
So, programmed, tested and the results:
the 2.9.6 does WORK,
the 2.9.7 does NOT WORK.

My tests: pressing the zero digits one to two times per second, or change the tunning freq by touching scope area wit the same touch/second frequency. With 2.9.6 this was performed for over 5 minutes without any hang. For the 2.9.7 it stops responding after 10..15 seconds. So now i'm sure this is firmware related issue. The result is that TP_IRQ stays high all the time.

I will connect 4 scope probes to SPI lines and check what is the difference between the 2.9.6 and 2.9.7.

Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: DB4PLE on 04. April 2018, 12:56:38

Hi Slawek,

good. Can you please turn off all DSP related functions (NR, NB) etc. and try again with 2.9.7. Major difference was the introduction of high prio task (which is basically the new NR functions and FreeDV). So my thinking is, it should not happen if we don't have these tasks active.
BTW, I tried exactly your "test" on a OVI40 and nothing happens (i.e. it works as before).

73
Danilo

Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: SP9BSL on 04. April 2018, 13:21:31

Hi Danilo,
you're right: i cannot hang it with 2.9.7 with DSP OFF. My initial setup when hang occured was NB=5.
See some pictures from scope (for 2.9.7 dumpl: CH1=CS, CH2=CLK, CH3=DI, CH4=DO):

Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: SP9BSL on 04. April 2018, 13:22:15

And for normal:
(for 2.9.6 dumpl: CH1=CS, CH2=CLK, CH3=DI, CH4=DO)
Please look at CS (CH1) for both cases.

Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: SP9BSL on 04. April 2018, 13:41:53

One more with decoded last communication to TS controller. As you can see there is some bytes lost (the first sequence is ok: 91 00 D1 00 90 00 00, but the second have few bytes less. After reset the TS controller receives complete sequence and all is ok until this hapens again.

For this picture CH4 has changed to TP_IRQ

Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: DB4PLE on 04. April 2018, 13:55:04

Hi,

I guess, we exceed tbe communication timeout of the XPT2046. I think, I remember having seen something like a maximum time for a communication with the controller. Not good, since if this is the problem, it is not so easy to fix without using DMA (or risking serious trouble).

73
Danilo

Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: SP9BSL on 04. April 2018, 14:07:09

Danilo,
I read the TSC pdf, and didn't find anything about maximum conversion time. I think the problem is with two 00 bytes lost at the end. These bytes are required for ADC conversion to take place. What i see on scope is CS low for 10ms (!) and cant find those bytes (clock) during this period. For some reason not all the xpt2046_command buffer content come out via SPI.

Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: DB4PLE on 04. April 2018, 15:02:50

Hi,

my educated guess is that the 10ms is the time it takes to do the NR calculation (since it has higher priority it interrupts the touchscreen SPI). I would expect that we simply continue doing the communication with the controller but it seems this does not happen, I will try to look into this.

73
Danilo


Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: DB4PLE on 04. April 2018, 15:17:27

Hi,

I think I found the problem. We have a 10ms timeout defined for the 10 Byte SPI communication to complete. This needs to be extended to be longer than the longest interruption of a normal priority task can be.

We have to review ALL HAL_* calls we do which have a timeout and set this timeout to a high enough value which takes into account that on slower machines the FreeDV takes about 12 ms to complete and the NR in somewhat less 10ms obviously (since a little of our timeout budget is spent when sending the first bytes).

Anyway, for now 20ms should do the job. You might try that ui_lch_hy28.c line 2359 (HAL_SPI_TransmitReceive(...., 10)
-> (..., 20)

Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: SP9BSL on 04. April 2018, 15:17:28

10ms is also the keyboard scan period which calls the touchscreen sampling function, but i can't imagine why it could not send data via SPI and not deassert the CS for TSC, -strange stack issue? Anyway, i have it 100% reproducible, and this is good.

Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: DB4PLE on 04. April 2018, 15:22:05

Hi Slawek,

see my problem analysis which crossed your post. I think you are right that there is no connection to the keyboard scanning.

Which by the way "never happens twice in the same 10ms block", but not regularly every 10ms, time between two scans can be less than 10ms or much, much longer than 10ms.

73
Danilo

Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: SP9BSL on 04. April 2018, 15:24:29

Danilo,
That's it! Changed to 20ms and it works! Will play with this some time.
I will pull it tonight with new DSP virual keyboard approach.

Arghh... HAL...

Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: DF5LI on 04. April 2018, 18:24:11

Danilo und Slawek, ihr seid meine Helden! Auch ich habe beobachtet, dass bei meinem Eagle der Touchscreen nach einiger Zeit nicht mehr reagiert. Nach einem Reboot ging er wieder für einige Zeit. Merkwürdigerweise funktionierte der Betätigungs-Beep aber immer, ebenso ging die Kalibration immer einwandfrei.

Dann muss ich mir ja kein neues Display bestellen!

Title: Re:[gelöst] Touch Funktion nicht mehr verfügbar
Post by: SP9BSL on 04. April 2018, 20:06:14

Hi Harri,
as I said, i noticed this few weeks ago but by coincidence - I was tinkering in new lcd pcb - I didn't care about this, because I thought I damaged it, until yesterday when I saw posts from Friedrich. Anyway - now it works, hope for others too. Will prepare new pull request for Andreas in a while.


Diskussions- und Newsboard des DARC-Ortsverbandes I40 | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.