EmbeddedRelated.com
Forums
Memfault Beyond the Launch

Embedded Linux: share data among different processes

Started by pozz June 23, 2016
Il 28/06/2016 05:06, Paul Rubin ha scritto:
> pozz <pozzugno@gmail.com> writes: >> I'm not an expert of desktop or web app... some starting points? > > https://wiki.python.org/moin/BeginnersGuide maybe. > > Basically I mean: write in a scripting language, use high-level > libraries or services, and (within reason) don't worry about resource > consumption. What hardware are you using? >
A SOM module with i.MX 6SoloX, 256MB RAM, 512MB Flash.
pozz <pozzugno@gmail.com> writes:
> A SOM module with i.MX 6SoloX, 256MB RAM, 512MB Flash.
Oh you're fine, that's far more powerful than any embedded thing I've ever used. It would been a fairly powerful server back in the day. You can run a standard web server stack on something like that, with nginx, python, some kind of web client talking to the sensors, etc. In fact do you really need the Qt interface instead of just using a browser?
Il 28/06/2016 09:27, Paul Rubin ha scritto:
> pozz <pozzugno@gmail.com> writes: >> A SOM module with i.MX 6SoloX, 256MB RAM, 512MB Flash. > > Oh you're fine, that's far more powerful than any embedded thing I've > ever used.
Me too :-)
> It would been a fairly powerful server back in the day. You > can run a standard web server stack on something like that, with nginx,
I'm going to use lighttpd. Any reason to use nginx instead?
> python, some kind of web client talking to the sensors, etc. In fact do > you really need the Qt interface instead of just using a browser?
The web browser will be used from a remote location. Do you mean to use the local display to show the windows of a web browser running on the embedded Linux? This could be fine, because the interface will be the same (for the user... and for the developer). Some questions: - do I need a windows desktop environment (X.org, ...)? - could I force the web browser window to be full-screen? I would avoid to see the Close Window button (the X button), the minimize button, the back button and so on...
pozz <pozzugno@gmail.com> writes:
> I'm going to use lighttpd. Any reason to use nginx instead?
Lighttpd should be fine.
> Do you mean to use the local display to show the windows of a web > browser running on the embedded Linux?
I meant have the local display run its own browser, viewing stuff served by the embedded Linux. I.e. the local display would be a small tablet. Running a browser on the embedded Linux is another idea, hmm, might be ok if the linux distro supports it. Do you have an SD card slot on the board? A browser is pretty heavyweight.
> This could be fine, because the interface will be the same (for the > user... and for the developer).
Yes :).
> - do I need a windows desktop environment (X.org, ...)?
No. You'll have to run something like X on the local display if you want to program it with Qt though. Is this a consumer product where you need a really slick interface, or is it something industrial where it's more about functionality?
> - could I force the web browser window to be full-screen? > I would avoid to see the Close Window button (the X button), > the minimize button, the back button and so on...
Yes, that is called "kiosk mode" and there are usually ways to do it.
Il 28/06/2016 19:01, Paul Rubin ha scritto:
> pozz <pozzugno@gmail.com> writes: >> I'm going to use lighttpd. Any reason to use nginx instead? > > Lighttpd should be fine. > >> Do you mean to use the local display to show the windows of a web >> browser running on the embedded Linux? > > I meant have the local display run its own browser, viewing stuff served > by the embedded Linux. I.e. the local display would be a small tablet
Hmmm... the cost will increase too much.
> Running a browser on the embedded Linux is another idea, hmm, might be > ok if the linux distro supports it. Do you have an SD card slot on the > board? A browser is pretty heavyweight.
No SD card, at the moment.
>> This could be fine, because the interface will be the same (for the >> user... and for the developer). > > Yes :). > >> - do I need a windows desktop environment (X.org, ...)? > > No. You'll have to run something like X on the local display if you > want to program it with Qt though.
Are you sure? QT runs directly on the framebuffer too... I think.
> Is this a consumer product where you > need a really slick interface, or is it something industrial where it's > more about functionality?
Industrial.
> >> - could I force the web browser window to be full-screen? >> I would avoid to see the Close Window button (the X button), >> the minimize button, the back button and so on... > > Yes, that is called "kiosk mode" and there are usually ways to do it.
I see, thank you.
pozz <pozzugno@gmail.com> writes:
>> the local display would be a small tablet > Hmmm... the cost will increase too much.
If you've priced it out then ok. Quantity must be pretty high for that. For the thing I worked on, we did our own display unit but I'm sure it would have been cheaper to use a tablet.
> Are you sure? QT runs directly on the framebuffer too... I think.
Hmm, ok.
On Tuesday, June 28, 2016 at 10:01:47 AM UTC-7, Paul Rubin wrote:
> pozz <pozzugno@gmail.com> writes: > > I'm going to use lighttpd. Any reason to use nginx instead? > > Lighttpd should be fine. > > > Do you mean to use the local display to show the windows of a web > > browser running on the embedded Linux? > > I meant have the local display run its own browser, viewing stuff served > by the embedded Linux. I.e. the local display would be a small tablet. > Running a browser on the embedded Linux is another idea, hmm, might be > ok if the linux distro supports it. Do you have an SD card slot on the > board? A browser is pretty heavyweight. > > > This could be fine, because the interface will be the same (for the > > user... and for the developer). > > Yes :). > > > - do I need a windows desktop environment (X.org, ...)? > > No. You'll have to run something like X on the local display if you > want to program it with Qt though. Is this a consumer product where you > need a really slick interface, or is it something industrial where it's > more about functionality? > > > - could I force the web browser window to be full-screen? > > I would avoid to see the Close Window button (the X button), > > the minimize button, the back button and so on... > > Yes, that is called "kiosk mode" and there are usually ways to do it.
We just use Android Browser (Firefox based) with slide-in controls. It get as full screen as possible. BTW, not as well to do it with Chrome. Customer said: did not have to do lots of work for the app? I said: nothing for the browser, but lots of PHP backend. He did not really understand what i meant.
Il 29/06/2016 23:01, edward.ming.lee@gmail.com ha scritto:
> On Tuesday, June 28, 2016 at 10:01:47 AM UTC-7, Paul Rubin wrote: >> pozz <pozzugno@gmail.com> writes: >>> I'm going to use lighttpd. Any reason to use nginx instead? >> >> Lighttpd should be fine. >> >>> Do you mean to use the local display to show the windows of a web >>> browser running on the embedded Linux? >> >> I meant have the local display run its own browser, viewing stuff served >> by the embedded Linux. I.e. the local display would be a small tablet. >> Running a browser on the embedded Linux is another idea, hmm, might be >> ok if the linux distro supports it. Do you have an SD card slot on the >> board? A browser is pretty heavyweight. >> >>> This could be fine, because the interface will be the same (for the >>> user... and for the developer). >> >> Yes :). >> >>> - do I need a windows desktop environment (X.org, ...)? >> >> No. You'll have to run something like X on the local display if you >> want to program it with Qt though. Is this a consumer product where you >> need a really slick interface, or is it something industrial where it's >> more about functionality? >> >>> - could I force the web browser window to be full-screen? >>> I would avoid to see the Close Window button (the X button), >>> the minimize button, the back button and so on... >> >> Yes, that is called "kiosk mode" and there are usually ways to do it. > > We just use Android Browser (Firefox based) with slide-in controls.
What is it? There some android browsers available. Do you mean mobile version of Firefox?
> It get as full screen as possible. BTW, not as well to do it with Chrome. > > Customer said: did not have to do lots of work for the app? I said: nothing for the browser, but lots of PHP backend. He did not really understand what i meant. >
On Thursday, June 30, 2016 at 6:11:00 AM UTC-7, pozz wrote:
> Il 29/06/2016 23:01, edward.ming.lee@gmail.com ha scritto: > > On Tuesday, June 28, 2016 at 10:01:47 AM UTC-7, Paul Rubin wrote: > >> pozz <pozzugno@gmail.com> writes: > >>> I'm going to use lighttpd. Any reason to use nginx instead? > >> > >> Lighttpd should be fine. > >> > >>> Do you mean to use the local display to show the windows of a web > >>> browser running on the embedded Linux? > >> > >> I meant have the local display run its own browser, viewing stuff served > >> by the embedded Linux. I.e. the local display would be a small tablet. > >> Running a browser on the embedded Linux is another idea, hmm, might be > >> ok if the linux distro supports it. Do you have an SD card slot on the > >> board? A browser is pretty heavyweight. > >> > >>> This could be fine, because the interface will be the same (for the > >>> user... and for the developer). > >> > >> Yes :). > >> > >>> - do I need a windows desktop environment (X.org, ...)? > >> > >> No. You'll have to run something like X on the local display if you > >> want to program it with Qt though. Is this a consumer product where you > >> need a really slick interface, or is it something industrial where it's > >> more about functionality? > >> > >>> - could I force the web browser window to be full-screen? > >>> I would avoid to see the Close Window button (the X button), > >>> the minimize button, the back button and so on... > >> > >> Yes, that is called "kiosk mode" and there are usually ways to do it. > > > > We just use Android Browser (Firefox based) with slide-in controls. > > What is it? There some android browsers available. Do you mean mobile > version of Firefox?
Yes, both mobile and desktop versions of Firefox have full screen mode.
> > > > It get as full screen as possible. BTW, not as well to do it with Chrome. > > > > Customer said: did not have to do lots of work for the app? I said: nothing for the browser, but lots of PHP backend. He did not really understand what i meant. > >

Memfault Beyond the Launch