Rpi or maybe another board

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Rpi or maybe another board

Post by sphere » Sun Feb 25, 2018 5:39 pm

Raspberry is fun but, they will not make new boards at least until 2019 so far known.
There is also Odroid, almost same price but more powerfull and Android supported.
Then there are a few more like Pine64.
BUt probably this will have more choice then what i've seen before and very cheap to buy, Linuz and Android supported, GPIO fully compatible with Rpi (like the other boards)
Take a look at www.orangepi.org take a look on those Chinese webstore like banggood, Pi PC 2 H5 Quad-core 26 euros.
Well for some thing you need to wait a while before you have it, but for other things they have an UK storage, so then it is a few days for EU.
So for cheap trying.
If Livecode runs on Rpi, then it can run there too probably.

trevix
Posts: 950
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: Rpi or maybe another board

Post by trevix » Tue Jun 22, 2021 3:44 pm

I was wondering how a LC standalone would perform on a Android OS installed in ODROID XU4.
Anybody knows what work and what doesn't? Library? externals?
Thanks
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Re: Rpi or maybe another board

Post by sphere » Tue Jun 22, 2021 9:26 pm

Works the same as on a phone.
Most video output on these platforms is rotated 90 degrees, so you need to create an app that can only allow landscape.

If you connect a mouse, it simply works on Android.

trevix
Posts: 950
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: Rpi or maybe another board

Post by trevix » Wed Jun 23, 2021 8:59 am

Thanks.
What about on the pi 4B? Are there comparable?
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Re: Rpi or maybe another board

Post by sphere » Wed Jun 23, 2021 10:05 pm

The GPIB pins should be the same as far as I know.
But for the rest you have to google it.
I have an Odroid C2 and there was only Android 6 avaiable ad use it as a TV setopbox and became to slow due to app updates, swapped it for a Xiaomi TX3 TV box, cheaper and much faster, more memory, Android 9 32GRom 4GB RAM.
Using a RPi 4 8GB as Linux server for new project.(PHP/Javascript) (No LC server as it does not run on it)

trevix
Posts: 950
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: Rpi or maybe another board

Post by trevix » Fri Jul 02, 2021 10:50 am

@Sphere
On the TX3 (android 9) the standalone runs fine but I have been scrolling all preferences without a sign of BT.
See my attachments

PS:I was keeping this conversation private to not bug the forum with hardware. But I could not send attachment.
Attachments
IMG_2958.png
IMG_2957.png
IMG_2956.png
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9801
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Rpi or maybe another board

Post by FourthWorld » Fri Jul 02, 2021 2:03 pm

sphere wrote:
Wed Jun 23, 2021 10:05 pm
Using a RPi 4 8GB as Linux server for new project.(PHP/Javascript) (No LC server as it does not run on it)
LiveCode standalones can run facelessly when launched with a -ui flag.

Indeed, for the decade or so between the invention of Apache's CGI convention and release of LC Server, that's how we were using LC on servers the whole time.

Well, partly. Before the licensing change in early LC, MC's engine was designed to be used raw, outside of a standalone, for any faceless applications.

Indeed, Scott Raney even included several examples of using the MC engine as a standalone (in addition to also including an entire httpd server example).

MC/LC has been socket-savvy since it was born in '92, so HTTP support on both sides has always been a natural fit.

With CGI being a convention to allow any program that supports stdin/stdout to be used as an accessory to the dedicated Apache httpd, that role was even easier for MC to fill.

The main differences between using a standalone and LC Server is that LC Server added engine code to parse environment cars like POST data (we used to write scripts for that), and the adoption of PHP's unique style of mixing CGI scripts inside of HTML templates, automatically invoking an extended version of the long-standing merge function.

But in a standalone merge is available, and unless you're intractably bound to PHP style comingling of code and content can be quite satisfying.

Indeed, not comingling CGI code with deliverable HTML is more or less how all other server-side scripting is done, from Perl to Python to Ruby and more. So LC standalones are hardly much of a disadvantage in terms of core style. If it's good enough for Rails...
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Re: Rpi or maybe another board

Post by sphere » Sun Jul 04, 2021 10:24 am

<del>I wonder if you got the exact same model as I have https://www.xiaomiproducts.nl/nl/tanix-tx3-tv-box.html</del> (why strike thru is not working here? or <s></s>
Rephrase: I see in the picture you have the same model, so it's strange it's not available
1625389805258.jpg
Bluetooth1
1625390305250.jpg
Bluetooth2
1625390305243.jpg
Bluetooth3
You see Bluetooth is available and working. And if you look good, you see my lovely foot :mrgreen:

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Re: Rpi or maybe another board

Post by sphere » Sun Jul 04, 2021 11:05 am

@Richard, I think I'm not quite following your last post.

I'm merging HTML with PHP of course.
Merging LC with HTML does not work on the Rpi. Yes it does work on Linux servers based on x86 processors as I also did before.

trevix
Posts: 950
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: Rpi or maybe another board

Post by trevix » Sun Jul 04, 2021 1:51 pm

Anyway I decided to go for another model:
https://www.amazon.it/Android-Amlogic-S ... ics&sr=1-3
I testest it. I can install my LC standalone APK without problems and it runs pretty smoothly.

There are only some little problems that I will have to understand:
  • playing sounds: it seems that they always get cut in the beginning.(my sounds are on the app directory so coulb be slow reading?
  • Bluetooth has som time difficulties on pairing.
  • Hardware wired keyboard does not write on LC fields. It does on mobile fields but not always
May be the 4 GB model works better?
Before deciding I will test another one (https://www.geekbuying.com/item/a95x-r5 ... 57150.html) and see how it compares.
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

trevix
Posts: 950
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: Rpi or maybe another board

Post by trevix » Sun Jul 04, 2021 5:27 pm

About playing sound: a better quality of the HDMI cable solved mostly this problem
(using a Hearphone the sound is fine)
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9801
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Rpi or maybe another board

Post by FourthWorld » Sun Jul 04, 2021 5:29 pm

sphere wrote:
Sun Jul 04, 2021 11:05 am
@Richard, I think I'm not quite following your last post.

I'm merging HTML with PHP of course.
Merging LC with HTML does not work on the Rpi. Yes it does work on Linux servers based on x86 processors as I also did before.
On the RPi did you try using a standalone?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Re: Rpi or maybe another board

Post by sphere » Sun Jul 04, 2021 9:17 pm

trevix wrote:
Sun Jul 04, 2021 1:51 pm
  • playing sounds: it seems that they always get cut in the beginning.(my sounds are on the app directory so could be slow reading?
If I remember correct in LC there should be an possibility for audio to pre-load an audio sample already, have to check the dictionary on that.

Another consideration for these all in one ready tv-boxes is updating existing apps, if that is important for you. It seems on mine TX3, you can't update Kodi to the latest as is part of the image. Version 18.x of Kodi has a bug that it does not close or takes a long time. Kodi 19.x has that solved. as an example.

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Re: Rpi or maybe another board

Post by sphere » Sun Jul 04, 2021 9:20 pm

FourthWorld wrote:
Sun Jul 04, 2021 5:29 pm
On the RPi did you try using a standalone?
No I did not. How should I do that?
I know about -ui, but as what should the standalone then be build? an exe for x86?
Thanks.
Last edited by sphere on Mon Jul 05, 2021 8:44 pm, edited 1 time in total.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9801
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Rpi or maybe another board

Post by FourthWorld » Sun Jul 04, 2021 10:38 pm

Linux/ARM systems only run Linux/ARM builds.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply

Return to “Raspberry Pi”