Page 1 of 1

Raspery Pi HDMI output support

Posted: Mon May 28, 2018 7:18 am
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?

Re: Raspery Pi HDMI output support

Posted: Mon May 28, 2018 9:50 am
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.

Re: Raspery Pi HDMI output support

Posted: Mon May 28, 2018 10:00 am
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

Re: Raspery Pi HDMI output support

Posted: Fri Jun 01, 2018 7:57 am
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 236 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

Re: Raspery Pi HDMI output support

Posted: Fri Jun 01, 2018 8:19 am
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

Re: Raspery Pi HDMI output support

Posted: Fri Jun 01, 2018 9:38 am
by LeighM
Ha!
The component is already in the release :oops:
Tools->Matrix Tools->Console Debugger (Raspberry Pi)
:lol:

Re: Raspery Pi HDMI output support

Posted: Tue Jun 12, 2018 9:26 pm
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.?

Re: Raspery Pi HDMI output support

Posted: Wed Jun 13, 2018 8:21 am
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

Re: Raspery Pi HDMI output support

Posted: Wed Jun 13, 2018 11:22 am
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

Re: Raspery Pi HDMI output support

Posted: Wed Jun 13, 2018 2:28 pm
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.

Re: Raspery Pi HDMI output support

Posted: Wed Jun 13, 2018 3:52 pm
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

Re: Raspery Pi HDMI output support

Posted: Wed Jun 13, 2018 4:13 pm
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

Re: Raspery Pi HDMI output support

Posted: Thu Jun 14, 2018 9:07 am
by celebriums
in that case; I'm starting work.
I will share the result.
:D