Skip to main content
Ebun.1
Senior
April 29, 2020
Solved

How to receive the data to be displayed in View

  • April 29, 2020
  • 3 replies
  • 1402 views

Thank you for helping.

I want to display the value detected by the sensor in View.

I'm thinking of using the RTOS mail queue.

Where should I describe queue reception?

Thank you.

This topic has been closed for replies.
Best answer by Jagdish Bisawa

Hi @Ebun.1​  Whereas you may check the webinar content, here is a brief of what you could possibly do :

1) Use the Model::tick function to read your sensor value(s) & communicate to the TouchGFX system, using the presenter object ( this means your polling/reading of the sensor happens only during the porch intervals, typically @ 60 hz ). Please be aware that the polling code should execute within 1 mS so as not to have an impact on the graphics;

2) Create another task & then use the message queue or any other inter-task communication methods to send the information. You will have to use the Model::tick function here as well to receive the information using inter-task communication & propagate the information further.

You may also check : https://support.touchgfx.com/docs/development/ui-development/touchgfx-engine-features/backend-communication

Keep reading the online documentation iteratively to get a good control over the framework.

/Jagdish

3 replies

Martin KJELDSEN
Principal III
April 29, 2020

Hi @Ebun.1​ ,

Please check https://community.st.com/s/question/0D50X0000AU4zodSQB/interfacing-with-hardware-in-touchgfx-applications

There's a link to a webinar i did on this topic, concretely, as well as the examples. (Physical button to UI through EXTI and GPIO sampling)

/Martin

Ebun.1
Ebun.1Author
Senior
April 29, 2020

Thank you very much.

I am going to use it as an example.

Jagdish Bisawa
Jagdish BisawaBest answer
Visitor II
April 29, 2020

Hi @Ebun.1​  Whereas you may check the webinar content, here is a brief of what you could possibly do :

1) Use the Model::tick function to read your sensor value(s) & communicate to the TouchGFX system, using the presenter object ( this means your polling/reading of the sensor happens only during the porch intervals, typically @ 60 hz ). Please be aware that the polling code should execute within 1 mS so as not to have an impact on the graphics;

2) Create another task & then use the message queue or any other inter-task communication methods to send the information. You will have to use the Model::tick function here as well to receive the information using inter-task communication & propagate the information further.

You may also check : https://support.touchgfx.com/docs/development/ui-development/touchgfx-engine-features/backend-communication

Keep reading the online documentation iteratively to get a good control over the framework.

/Jagdish

Ebun.1
Ebun.1Author
Senior
April 29, 2020

Thank you very much.

I am going to use it as an example.

Karan 123
Senior
April 29, 2020
Ebun.1
Ebun.1Author
Senior
April 29, 2020

board: STM32F769I-DISCO

Thank you very much.

I am going to use it as an example.