Embedded platform to run mango on - what ideas do people have
I have been thinking of running mango on a dedicated small fanless box so that it can sit out of the way under the stairs and then use web access to control/access it.
What examples of h.w do people have for running this on?
My basic thoughts would be a small ATOM based box running Ubuntu server and tomcat. Have it as a fanless device - so its quiet - and use flash type storage device so again there is no moving parts
any ideas or suggestions welcome
(I am also on a budget and hope I can find somthing sub $200 or so)
I see link to the rack-mount, but if you're going through the expense of a Schweitzer machine, you are likely to be using packaged industrial HMI software.
Does anybody have an idea on how a small, Intel Atom or Via-based machine performs running WAMP and Mango? LAMP?
Any thoughts or example hardware setups would be appreciated. Thanks!
Here is what I have been looking at - in no particular order - would love peoples thoughts and feedback
My criteria are
1 - no moving parts (this thing is going to run 24x7 for years - and dust kills fans etc)
2 - battery backed up - so in event of power failure/brownout - it does not die - ideally about 4 to 6 hrs back up
3 - lots of com ports - hope to use 1-wire a lot - and want flexability of a number of 1-wire networks to ensure reliability
4 - linux probably - althought i am a windows person - linux seems to be better suited to a box which will run for ever
5 - 250 to 500 mb memory and 4 to 10gb storage as a min
6 - wifi - (but not eccential)
7 - potentially a touch screen
just found this
chap using a small ITX box for running
Also take a look at www.mini-itx.com - very helpful chap - had a good long conversation with him - he has a 1-wire network in his house (not Mango)
We think a suitable system will be about £300
Why don't you use a plug pc like this one.
Cool device - but what realistically is the smalles sensiable device for running Mango on
I would have thought that this little block did not have enough memory
I was running mango with hundreds of points polling every 5-10s logging every 15 minutes with derby on IBM R50 laptops 1.5GHZ cpu single core and 512 mb ram and it worked, but I replaced the laptops with propers servers and I'm a lot happier now.
Here is an old thread on the same topic.
Please see it for explanation about ARM CPU based systems like the sheevaplug. If there has not been anything new recently on JVM side, I would say those cannot be used with mango.
In atom based systems I don't see any problem, using such currently.
I would like to run mango on a beagleboard, but i'm also unsure about the preformance of java.
Are there any (non graphical) benchmarks i could run?
I found some vm's (zero, shark, cacao) that i could try, that seem to be faster... any idea if they are any good?
It seems like android is ported to the beagleboard. Android uses java right? Or is this just simplistic thinking of me?
I asked ARM about their Java support, but didn't find their response encouraging. They didn't say anything about any future plans.
Note that Android is based upon Java, but is not anything close to a full JDK. I haven't tried it out myself, but i would not expect Mango to run on Android unmodified.
... but, you may have better luck with [url=http://automation.serotoninsoftware.com]Mango Automation
Is it possible to run 'mango automation' from an embedded OS without modifications?
I was looking at some nice ARM-based platforms like this http://www.friendlyarm.net/products/mini6410
It may not support mango but do you think would it be possible to use mango automation there?
I think, that will be problem with JAVA version. Some sources are talking about J2ME edition for FriendlyArm or old 1.4 JDK .
I think about AlixBoards with AMD Geode
JoelHaggar last edited by
I've built 5 mango system using the Intel D510MO Mini-ITX Motherboard and either a solid state hard drive or a laptop hard drive and they work great. No fan, supper quite and very small.
I run Ununtu server 10.04 and in the end it makes a really nice package that costs about $250 in hardware.
I'd love to find a solution for $100 for monitoring just a few data points but haven't had time to experiment at all.
Porting Mango back to 1.4 would not be a trivial task but in theory is possible. We (Serotonin) would certainly be willing to discuss this as a commercial endeavour.
decidedly not in your price range:
generally they run Embedded WinXP, and provide LON support.
This tuturial is for thoose want to build a small box to run Mango or ScadaBr
Since I was looking for a small pc I remember to use a Alix board that is more cheap than a pc and more compact and try to build a linux debian based system and them install MANGO
In this tuturial I will try to explain the steeps I take to sucssefuly install the debian and then the Mango. My choise of using mango was because I can't get ScadaBr running because of the installer script so I turn to Mango
In my configuration I will use:
An Arduino Duemilanove
an Alix Board 2D from PC Engines GmbH, can be bought at http://pcengines.ch/alix.htm
1 CF card 4Gb (for debian instalation and MANGO)
After a seach on google I found a website with some instrutions that help me to get all up and running
You can see all the instrutions where http://www.gooze.eu/howto/debian-installation-on-alix-board-howto/setting-time but for now I will try to resume some of then.
In case you have some dificult I sugest you to read the instrutions on the above link.
You will need a pc with a CFcard reader to start the instalation on the CFcard, in my case I'm using a Linux Mint distro but any other will do
I will assume you have some linux experience and soo I will not go to deep
Soo insert the CFcard on your reader.You will need to know waht was the /dev/sdXXX your system give to the CFcard. There are diferent ways to see this, I will describe 2 ways:
before insert the card open a console and type: "tail -f /var/log/messages" then insert the CFcard, you will see the text will flick and there you can read the /dev/sdXX that was assigned to your card
after that just hit CTRL+C to exit from the tail.Now you know the id of your device
Another way is just use the gparted wich is a disk tool to manage partitions on linux with a nice GUI.there you can also see the "/dev" id of your card
we will use the "dd" command to copy an image to CFcard with a prebuild of a debian instalation
open again a console in case you close the last one and download the image
then extact the tar using:
$tar -xvf debian.tar.gz
After that we can transfer the image to the CFcard using:
$ dd if=debian.img of=/dev/sd[b,c,d]
double check the command because if you make some mustake you can delete or harddrive!!!
it will take a while so just wait until you get the prompt again with the details of the duration and speed of the copy
After that remove the card and insert the CFcard on the alix board.Before you power it you will need a Serial cable to connect the alix board to your computer
You will also need a hiperterminal client, I had used gtkterm but you can use "screen" ou putty, its up to you.
The baud is 38400N,8,1
Open the port with with configuration and the power the alix board.
You should start to see some lines of a test memory wich is normal on the alix board and the wait until you see the debian instalation menu.This can take a while , do not remove the power, if soo perhaps you will need to reinstall the image of the last step
Follow the setup as normal(if you have trouble read the instrutions on the link I give above)
After the instalation is complete install ssh for remote acess.I will assume you already have internet conection on the alix
$apt-get install openssh-server
If you want to install mysql to support the Mango databases you can just install it by using:
$apt-get install mysql-server
Mango needs to have JAVA installed
In my case using "apt-get install sun-java6-jdk" it give me a message no package found then I had need to add a source to a new repository
use vi or nano and add the folowing line to /etc/apt/sources.list "deb http://archive.canonical.com/ lucid partner" without the " of course
Save it and update all sources using "apt-get update"
after that you should be able to install java then type "apt-get install sun-java6-jdk"
Then install a ntp package to automaticaly update the time of your system
$apt-get install ntpdate
In my case I'm using a Portuguese NTP server, adapt to your needs
after that confirm the date and time using
It must display the right time and date now.
Now that we have all the requirements lets move to the MANGO instalation.
Visit the link http://mango.serotoninsoftware.com/download.jsp
Here we can find the parts we need
Open a console again and choose a location to store the instalation.I had installed on /usr
Lets Dowload the TOMCAT:
tar -xvf apache-tomcat-6.0.20.tar.gz
Rename the folder to tomcat just to be more simple
$ mv -R apache-tomcat-6.0.20 tomcat
$ cd tomcat/bin
For test the apachTomCat lets fireup it and see if it runs.To do this just do:
This will start the Service and now he would be able to open the welcome page of tomcat opening http://ip_of_box:8080
If you see the page you are ok, close it and lets stop it for now using :
Now we need to remove some folders inside the webapps/ROOT folder to store the MANGO
to do this use:
Remove all folders using:
This will remove all folders and files on this location, we need to remove it because this is the root dir of tomcat, this are the files and folder displayed when you start Tomcat, since we want just the MANGO lets now dowload it for this directory and extact it were
Assuming you stil are in the same folder ("/usr/local/tomcat/webapps/ROOT") download the MANGO
Extact it :
$tar -xvf mango-1.13.0.tar.gz
To confirm all files and folder are now here just do an "ls -al" to list the directory:
you should see something like this:
root@supervisao:/usr/local/tomcat/webapps/ROOT# ls -al
drwxr-xr-x 10 root root 4096 Jan 1 2000 .
drwxr-xr-x 7 root root 4096 May 14 2009 ..
drwxr-xr-x 12 root root 4096 Dec 19 15:52 WEB-INF
drwxr-xr-x 3 root root 4096 Dec 19 15:52 audio
drwxr-xr-x 3 root root 4096 Jan 1 2000 backup
-rw-r--r-- 1 root root 6619 Mar 6 2011 customViewExample.jsp
drwxr-xr-x 2 root root 4096 Dec 19 15:52 exception
drwxr-xr-x 18 root root 4096 Dec 18 23:34 graphics
drwxr-xr-x 3 root root 4096 Dec 19 15:52 images
-rw-r--r-- 1 root root 1712 Mar 6 2011 index.jsp
-rw-r--r-- 1 root root 29117044 Dec 19 15:52 mango-1.13.0.zip
drwxr-xr-x 3 root root 4096 Dec 19 15:52 resources
-rw-r--r-- 1 root root 2436 Mar 6 2011 soundmanager2.swf
-rw-r--r-- 1 root root 8119 Mar 6 2011 soundmanager2_flash9.swf
drwxr-xr-x 2 root root 4096 Jan 19 12:15 uploads
If this is your output to you are almost finish the instalation.
In my case In using an arduino to comunicate to outside world via USB port.In this case I need to include a file on java dir to be able to comunicate with serial ports ("dev/ttyUSB0 in my case")
If this is also your case lets just download the librxtxSerial.so and import it:
Now we need to save in <jdk1.6-home>/jre/lib/i386
To find this location on your instalation just use:
This will display the path of you java, now lets move the librxtxSerial.so to that location.Im my case it was:
$mv librxtxSerial.so /usr/lib/jvm/java-6-sun-18.104.22.168/jre/lib/i386/
It's everything done
Lets start the Tomcat and test it on your alix Board:)
In the first run the system will build the MANGO database soo it can take a while until the page loads.
It could take about 40 secounds soo be patient
When the page loads just enter the default login :admin admin and your MANGO small box is ready!!
I hope this tuturial help those you want to test it on a alix board.
I not a linux expert then it is possible to some steps could be wrong and could be a better way to do it.
This manual can be modified to get better and sugestions are acepted