Raspery Pi HDMI output support

Moderator: Benj

Post Reply
User avatar
celebriums
Posts: 125
Joined: Sun Sep 25, 2016 3:50 pm
Has thanked: 71 times
Been thanked: 33 times
Contact:

Raspery Pi HDMI output support

Post by celebriums »

Hi Matrix Familiy,
Everyone Greetings and congratulations. First of all, the features of Flowcode 8 have been impressive. Thank you very much.
Raspery Pi, will HDMI output support be provided? or how can this be done?
Sincerely Regards
Sadık SUME

www.kaandesign.com.tr

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: Raspery Pi HDMI output support

Post by LeighM »

Flowcode apps on Raspberry Pi run on Raspbian so you still have the desktop on the HDMI port.
If you are looking for a user interface, then Flowcode does not yet have direct output to the desktop.
But you could implement a user interface on a browser via html and the TCPIP component.
There is also the possibility on the Pi of running say Node-RED as a UI Dashboard and pushing messages to that from the Flowcode app.
Also connecting Pi to Flowcode running in a SCADA mode is something else we are looking at in the future.

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: Raspery Pi HDMI output support

Post by QMESAR »

LeighM wrote: you could implement a user interface on a browser via html and the TCPIP component.
There is also the possibility on the Pi of running say Node-RED as a UI Dashboard and pushing messages to that from the Flowcode app.
Also connecting Pi to Flowcode running in a SCADA mode is something else we are looking at in the future.
Team would this be much asked if you can supply one simple example of this the above and FC as this is the missing thing the connection between the user and the RPI and FC8 applications :D

mnf
Valued Contributor
Valued Contributor
Posts: 1189
Joined: Wed May 31, 2017 11:57 am
Has thanked: 70 times
Been thanked: 439 times
Contact:

Re: Raspery Pi HDMI output support

Post by mnf »

Output on the Pi:

As a thought experiment I wondered what would happen if stdio.h was imported.... (Actually I wondered about glut.h and gl.h - but that's a job for another day)

It does work - console output is possible from within your Flowcode.....
pi3.fcfx
(6.78 KiB) Downloaded 198 times
This outputs to the console on the Pi - but only if you run it from the Pi console (- from within Flowcode it just outputs to the remote console - try 'putty')
I encountered the same 'problem' using remote debugging of Python on the Pi too - but haven't found a work around although there surely is one.

Would be easy to create a few macros to hide the C - PrintNumber, PrintString etc

Martin
Last edited by mnf on Fri Jun 01, 2018 8:58 am, edited 1 time in total.

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: Raspery Pi HDMI output support

Post by LeighM »

Hi Martin,

Thanks for that.
It will also work without the stdio.h icon, as stdio.h is already included.
I did write a simple component for printing strings that output to the Pi console (which pops up whilst running the Pi target from Flowcode)
and output to the Flowcode console in simulation.
I don't think it has made it into the distribution yet, I'll have a chat with Ben and see if we can tidy it up and allocate it to a category.

Leigh

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: Raspery Pi HDMI output support

Post by LeighM »

Ha!
The component is already in the release :oops:
Tools->Matrix Tools->Console Debugger (Raspberry Pi)
:lol:

User avatar
celebriums
Posts: 125
Joined: Sun Sep 25, 2016 3:50 pm
Has thanked: 71 times
Been thanked: 33 times
Contact:

Re: Raspery Pi HDMI output support

Post by celebriums »

Thank you everyone for the answer.
How can I print the image on the HDMI screen?
Can this work with the BitmapDriverFAT1 plugin?
Could you explain it by making a simple example?

Thank you in advance for your help.?
Sincerely Regards
Sadık SUME

www.kaandesign.com.tr

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: Raspery Pi HDMI output support

Post by LeighM »

Hi,
sorry, it is not possible at the moment,
but something we could add to our future list.

edit:
I've just had a quick look at this and I think we should be able to get a component created for it some time sooner rather than later :D

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Raspery Pi HDMI output support

Post by Benj »

Hello,

Just been discussing this with Leigh,
Can this work with the BitmapDriverFAT1 plugin?
The Bitmap Drawer ROM component should work fine.

The Bitmap Drawer FAT component probably won't do what you want it to do on the RPI which is access the RPI SD card. So we probably need an additional component to allow read/write file access on the RPI. Another one for the list :D

User avatar
celebriums
Posts: 125
Joined: Sun Sep 25, 2016 3:50 pm
Has thanked: 71 times
Been thanked: 33 times
Contact:

Re: Raspery Pi HDMI output support

Post by celebriums »

The aim of this project;
The school bus also prevents the forgotten (4-9 years old) children.
Displaying the children sitting on the seats when the vehicle ignitition switch is active.

In the current system,
NEXTION HMI 3.5" LCD, UART comm is working fine. I completed this system in as short as 3-4 weeks.

Questions:
I would like to send the seat information in the school bus to another screen via HDMI or RCA outputs.


Can this work be done with a different processor than RPI? I do not know.

The STM32F769 discovery board is eliminated. It can output HDMI output,
Flowcode STM32F769 does not support discovery.

Thank you for your support.
Sincerely Regards
Sadık SUME

www.kaandesign.com.tr

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: Raspery Pi HDMI output support

Post by LeighM »

Hi,
I've now got a Raspberry Pi HDMI output component functional.
We just need to check it over, hopefully have it pushed out to V8 soon for you to try :D

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Raspery Pi HDMI output support

Post by Benj »

Hello,

I've pushed Leigh's component out to the update system now.

Help -> Check For Updates then change Files in use to Full Database.

https://www.matrixtsl.com/wiki/index.ph ... _all_files

User avatar
celebriums
Posts: 125
Joined: Sun Sep 25, 2016 3:50 pm
Has thanked: 71 times
Been thanked: 33 times
Contact:

Re: Raspery Pi HDMI output support

Post by celebriums »

in that case; I'm starting work.
I will share the result.
:D
Sincerely Regards
Sadık SUME

www.kaandesign.com.tr

Post Reply