-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help with Serial Reads from touch controller. #24
Comments
Hey @Shach01, From what I got from the protocol, a message always starts with const static uint8_t TOUCH_STATE_RELEASE = 1;
const static uint8_t TOUCH_STATE_PRESS = 2;
const static uint8_t TOUCH_STATE_SWIPE = 3;
const static uint8_t TOUCH_STATE_MULTI_TOUCH = 11;
const static uint8_t TOUCH_STATE_SWIPE_RIGHT = 12;
const static uint8_t TOUCH_STATE_SWIPE_LEFT = 13; I don't know why, but the code sets as invalid when the message starts with The position of the touch (a number between 0 a 10) is defined by the 6th or 7th byte: int TxUltimateEasy::get_touch_position_x(int uart_received_bytes[]) {
int state = uart_received_bytes[4];
switch (state) {
case TOUCH_STATE_RELEASE:
case TOUCH_STATE_MULTI_TOUCH:
case TOUCH_STATE_SWIPE_LEFT:
case TOUCH_STATE_SWIPE_RIGHT:
return uart_received_bytes[5];
break;
default:
return uart_received_bytes[6];
break;
}
} I can try to look more at this later. Please share here if you find something more. 😉 |
Hey @Shach01, did you got what you were looking for? |
Hey Edward!
We did cone right! After reviewing the drivers for tasmota and esp easy we realized (not documented) that they are pulling GPIO5 HIGH to activate the touch driver, weird as the touch driver still spams a default serial stream and once you pull this pin high the driver behaves and starts to send correct touch serial data.
Thank you so much for your assistance. I hope that helps.
Kind regards,
Josh
…Sent from my Galaxy
-------- Original message --------
From: Edward Firmo ***@***.***>
Date: 2024/07/12 11:31 (GMT+02:00)
To: edwardtfn/TX-Ultimate-Easy ***@***.***>
Cc: Shach01 ***@***.***>, Mention ***@***.***>
Subject: Re: [edwardtfn/TX-Ultimate-Easy] Help with Serial Reads from touch controller. (Issue #24)
Hey @Shach01<https://github.com/Shach01>, did you got what you were looking for?
—
Reply to this email directly, view it on GitHub<#24 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AMPAUWZWWZWWHMGFCX4SC3TZL6O53AVCNFSM6AAAAABJP2WYESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRVGE4TANBZGU>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hi Adward, we are struggling to get usable serial information from the touch controller. it is always the same stream no matter if we attemp to trigger any form of touch event:
AA 55 1 7 0 62 3B 46 57 53 57 45 53 2D 54 35 54 4F 55 43 48 2D 54 35 2D 43
any help or guidance would be much appreciated, have a great day man!
Kind regards,
Josh
The text was updated successfully, but these errors were encountered: