A Forum run by Enthusiasts of MidNite Solar

The Open Source software/hardware corner => Beagle Board => Topic started by: Zap on August 09, 2013, 02:55:35 PM

Title: Up and running
Post by: Zap on August 09, 2013, 02:55:35 PM
Hi all,
have a BeagleBone Black up and running with Ubuntu 13.04  apache2, php, mysql.
It is really  surprising how fast this board is and had no problems getting things up and running.
Have  RossW's newmodbus installed and have been able to use the command prompt to get info from the Classic
How comes the hard part (for Me), setting up  to monitor the Classic as I don't know anything
about writing code or doing web pages.

zoneblue: I had a look at your website and even downloaded your code to play with,  will try and figure  it out.
Title: Re: Up and running
Post by: TomW on August 09, 2013, 03:03:07 PM
Zap;

I can pass on some bits n pieces. I use crond to run my collection scripts and would be happy to share "how" I get what I want from the 2 Classics here.

I use awk and sed to massage the info and gnuplot to make graphs. PM me and I will see if I can help get you started logging which is the first step. There are more than one way to do this and I use just one method that works for me.

You may need to install some things (easy)

Tom
Title: Re: Up and running
Post by: boB on August 09, 2013, 03:17:59 PM

This is great, Zap !   can't wait to hear how it all works after some more experience.

Thanks for sharing that info !

boB
Title: Re: Up and running
Post by: Halfcrazy on August 09, 2013, 03:36:35 PM
for some reason my Beagle Board black will not boot. it pops up the little BeagleBoard logo for a sec and then goes away. I need to do more digging

Ryan
Title: Re: Up and running
Post by: TomW on August 09, 2013, 03:55:22 PM
Quote from: Halfcrazy on August 09, 2013, 03:36:35 PM
for some reason my Beagle Board black will not boot. it pops up the little BeagleBoard logo for a sec and then goes away. I need to do more digging

Ryan

So many new toys, too bad I went whole hog on rPi before these other boards came to my attention. They all seem to have their niche and uses.

Good luck with it.

Tom
Title: Re: Up and running
Post by: zoneblue on August 09, 2013, 04:32:34 PM
Ross and i have been talking and a vague plan  is forming around starting a google code project to house all our various code tidbits, and maybe make some kind of plan to build something modular, that can grow over time and talk to more devices. I should have something in writing in a week or so.
Title: Re: Up and running
Post by: zoneblue on August 09, 2013, 04:49:21 PM
BTW which version of newmodbus are you using?
Title: Re: Up and running
Post by: mtdoc on August 09, 2013, 05:04:55 PM
Quote from: zoneblue on August 09, 2013, 04:32:34 PM
Ross and i have been talking and a vague plan  is forming around starting a google code project to house all our various code tidbits, and maybe make some kind of plan to build something modular, that can grow over time and talk to more devices. I should have something in writing in a week or so.

Hey,

I just wanted to thank you guys. I'm sure there's probably many others like me who are monitoring junkies but without the coding skills to do what you guys are doing.  Looking forward to seeing what you guys come up with! ;D
Title: Re: Up and running
Post by: TomW on August 09, 2013, 07:33:31 PM
Quote from: zoneblue on August 09, 2013, 04:49:21 PM
BTW which version of newmodbus are you using?

Blue;

ROSS/newmodbus -p solar
SOLAR Display Panel 1.0.18, RossW
State FloatMppt
Firmware 1401
Title: Re: Up and running
Post by: zoneblue on August 10, 2013, 01:19:21 AM
Tom, i was wondering whether he was using the rPi 'version' (that you compiled on the pi) on the beagle. That version...
Title: Re: Up and running
Post by: Zap on August 10, 2013, 02:11:48 AM
The Ubuntu install info I used was from here: http://circuitco.com/support/index.php?title=Ubuntu_On_BeagleBone_Black
ZoneBlue:  using:  newmodbus 1.0.18 PC  Classic firmware 1401
Title: Re: Up and running
Post by: TomW on August 10, 2013, 08:04:50 AM
Quote from: zoneblue on August 10, 2013, 01:19:21 AM
Tom, i was wondering whether he was using the rPi 'version' (that you compiled on the pi) on the beagle. That version...

I doubt he was using 1.0.18 of any version I compiled. I only got them compiled a couple days ago due to my internet being down for a week and then up and down for several days after that.

I haven't passed on any binaries of 1.0.18 yet. I only got the source a couple days ago.

Ross had an OS-X version he compiled and posted, I think.

Hoping to find a stable internet access option here soon before what I have dies for good.

Tom
Title: Re: Up and running
Post by: Tons001 on August 10, 2013, 09:39:40 AM
I was able to get Ubuntu 12.04 up and running on the BBB from the sd but I am having trouble getting the full Ubuntu desktop up and going. Gonna putz around with it more today. I don't really want to flash over Argstorm till I know I like Ubuntu.
Title: Re: Up and running
Post by: Zap on August 10, 2013, 10:13:27 AM
Quote from: TomW on August 10, 2013, 08:04:50 AM
Quote from: zoneblue on August 10, 2013, 01:19:21 AM
Tom, i was wondering whether he was using the rPi 'version' (that you compiled on the pi) on the beagle. That version...
I doubt he was using 1.0.18 of any version I compiled.
Tom is right didn’t get it from him, got it from Rossw’s site : newmodbus.1.0.18-PC    02-Jul-2013 06:52    25K
Title: Re: Up and running
Post by: RossW on August 10, 2013, 05:09:07 PM
Quote from: Zap on August 10, 2013, 10:13:27 AM
Quote from: TomW on August 10, 2013, 08:04:50 AM
Quote from: zoneblue on August 10, 2013, 01:19:21 AM
Tom, i was wondering whether he was using the rPi 'version' (that you compiled on the pi) on the beagle. That version...
I doubt he was using 1.0.18 of any version I compiled.
Tom is right didn’t get it from him, got it from Rossw’s site : newmodbus.1.0.18-PC    02-Jul-2013 06:52    25K

Ahh, the irony!

Ross doesn't have an rPi.
But Tom has been intimately involved with my code since day one... the -PI and -PC versions of code on my site are actually compiled by TomW and sent back to me.

So in reality you ARE running a version compiled by Tom, just that it came via me ;)
Title: Re: Up and running
Post by: TomW on August 10, 2013, 05:40:06 PM
Remember, TomW is getting kind of old and may or may not have Alsheimers and / or CRS (Can't Remember Shtuff).

He doesn't let facts get in the way of a good story, either!  :o

Just sayin..

Tom
Title: Re: Up and running
Post by: Zap on August 10, 2013, 08:32:30 PM
Well,  all I have to say is Thanks Guys for all the hard work. ;D
Title: Re: Up and running
Post by: RossW on August 11, 2013, 12:23:00 AM
I've just put version 1.0.19 on my site for download.

http://support.rossw.net/midnite/

There was an error in 1.0.18 resulting in some "resting reason" codes being displayed incorrectly.
I've also improved the -? (help) screen display to show stuff that's there.
I've added a -W option that takes a URL (without the http://) for people who run their own servers and want to play with capturing data locally. It (should) behave the same as -w, except it'll write to your nominated server.

(Note: anyone doing this will likely want to speak up, to know what to expect!)

Also added some more debugging information, and it will now check for you forgetting to specifiy the host and will politely quit rather then segfaulting.
Title: Re: Up and running
Post by: dgd on June 18, 2014, 09:46:03 PM
Just had a look today at a friend's Beaglebone Black system running. It has a 4.3inch LCD display, touch screen type. Very nice.
I was imagining this stuck to the front of a Classic with serial connection.
However,  can't use it for interfacing to a Classic via rs232 serial ports as these are disabled when the LCD is connected.
Bummer.

dgd
Title: Re: Up and running
Post by: zoneblue on June 18, 2014, 11:22:07 PM
The armv7 boards are surprisingly capable for a watt and a quarter.
Title: Re: Up and running
Post by: Zap on June 19, 2014, 12:58:20 AM
Quote from: dgd on June 18, 2014, 09:46:03 PM
can't use it for interfacing to a Classic via rs232 serial ports as these are disabled when the LCD is connected.
Bummer.

dgd

Sure you can.
LCD cape along with a RS232 cape to the BBB and with this http://www.berriman.co.uk/beaglebone-black-with-rs232-cape/ you will have both LCD plus RS232

Title: Re: Up and running
Post by: dgd on June 19, 2014, 01:11:56 AM
Thanks for the info.
I enquired from Element14 who sell these and was told there is not really a good solution without rewriting kernel code, but it doesn't surprise me that the problem has already been sorted out, even though that solution is not exactly trivial.
I'm sort of leaning toward buying the BBB and lcd cape but I will need an rs232 cape as well?
dgd
Title: Re: Up and running
Post by: zoneblue on June 19, 2014, 03:29:45 PM
I was under the impression that the BBB has something like 6 on board UARTs... TTL tho, not rs232.
Title: Re: Up and running
Post by: Zap on June 27, 2014, 09:59:36 PM
Quote from: dgd on June 19, 2014, 01:11:56 AM
but I will need an rs232 cape as well?
dgd

I believe so that was the only way I found to get RS232 to work when using the LCD cape.