cancel
Showing results for 
Search instead for 
Did you mean: 

How to receive the data to be displayed in View

Ebun.1
Senior

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Jagdish Bisawa
Associate III

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

View solution in original post

6 REPLIES 6
Martin KJELDSEN
Chief III

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

Jagdish Bisawa
Associate III

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

Karan 123
Senior

Thank you very much.

I am going to use it as an example.

Thank you very much.

I am going to use it as an example.

board: STM32F769I-DISCO

Thank you very much.

I am going to use it as an example.