COM 3.24 Firmware

Ask questions about the GEM here.
Teken
Posts: 2700
Joined: Wed Dec 15, 2010 4:09 pm
Location: The Bad Lands

COM 3.24 Firmware

Post by Teken » Mon Feb 16, 2015 6:23 pm

I installed COM 3.24 firmware last week during the release day and wanted to let you know all seems to be rock solid.

I did notice a DB to GEM drop off that seems to repeat itself every 3 minutes? :?: Upon rebooting both GEM COM / Engine via the Advanced Tab along with the DB all seem well.

There was a time sync message on the DB that seemed to stay present in the system for about 60 seconds which I have not seen for quite awhile.

Any release notes for this release would be great to see.
Teken . . .

My ongoing projects thread: http://www.brultech.com/community/viewt ... ?f=2&t=929
Buy me a cup of coffee: https://www.paypal.me/Teken https://gfinotify.com/ Discount Code: PC10
ben
Site Admin
Posts: 4262
Joined: Fri Jun 04, 2010 9:39 am

Re: COM 3.24 Firmware

Post by ben » Tue Feb 17, 2015 10:35 am

Teken wrote:I installed COM 3.24 firmware last week during the release day and wanted to let you know all seems to be rock solid.

I did notice a DB to GEM drop off that seems to repeat itself every 3 minutes? :?: Upon rebooting both GEM COM / Engine via the Advanced Tab along with the DB all seem well.

There was a time sync message on the DB that seemed to stay present in the system for about 60 seconds which I have not seen for quite awhile.

Any release notes for this release would be great to see.
Paul is working out a couple bugs that we're introduced recently. Might fix that 3 minute problem.
Ben
Brultech Research Inc.
E: ben(at)brultech.com
Teken
Posts: 2700
Joined: Wed Dec 15, 2010 4:09 pm
Location: The Bad Lands

Re: COM 3.24 Firmware

Post by Teken » Tue Feb 17, 2015 10:53 am

ben wrote:
Teken wrote:I installed COM 3.24 firmware last week during the release day and wanted to let you know all seems to be rock solid.

I did notice a DB to GEM drop off that seems to repeat itself every 3 minutes? :?: Upon rebooting both GEM COM / Engine via the Advanced Tab along with the DB all seem well.

There was a time sync message on the DB that seemed to stay present in the system for about 60 seconds which I have not seen for quite awhile.

Any release notes for this release would be great to see.
Paul is working out a couple bugs that we're introduced recently. Might fix that 3 minute problem.
Ben,

Good to know, and please note the system has not dropped off since the DB / GEM reboot.
Teken . . .

My ongoing projects thread: http://www.brultech.com/community/viewt ... ?f=2&t=929
Buy me a cup of coffee: https://www.paypal.me/Teken https://gfinotify.com/ Discount Code: PC10
scyto
Posts: 258
Joined: Sun Apr 06, 2014 7:24 pm

Re: COM 3.24 Firmware

Post by scyto » Sun Feb 22, 2015 4:20 am

Since installing this after a period of time no more packets get logged by the dashbox, this seems to happen about 8 minutes after everything has been rebooted.

No recent packets logged for device 01000029

•Make sure Real-Time is enabled.
•Check connection to DashBox.
•Check Raw Data section in Settings section to make sure data is coming in.

--edit--
sometimes it happens a few minutes after a reboot.
I can still access the GEM via http://DB-ipaddress:8001 so I assume com ports an baud are ok.

I tried rebooting the COM and ENG along with the DB and it started off red in the DB but after a minute or so became green again
scyto
Posts: 258
Joined: Sun Apr 06, 2014 7:24 pm

Re: COM 3.24 Firmware

Post by scyto » Sun Feb 22, 2015 3:53 pm

after more research it seems my use of btmon.py is the culprit here

I saw in the DB manual that it exposes the GEM on 8001
So I configured btmon.py to pull data from the DB IP address on port 8001, hoping that the DB would log the DB packets itself and also allow the btmon.py script access the same data

after a few minutes of uploading data to emoncmw.org the status light on the DB goes red.

the btmon.py script seems to continue to upload just fine (though it wasn't last night when theses symptoms hit it would deny connection to the script too).

This is my command I was using (192.168.1.8 is my DB)

python btmon.3.1.0.py --device-type=gem --ip --ip-mode=client --ip-host=192.168.1.8 --ip-port=8001 --oem --oem-token=<mytoken> --oem-url=http://emoncms.org/input/post.json --oem-node=1 --reverse-polarity=1 --debug

after stopping this script the DB status went back to green (it didn't when I was troubleshooting tis last night - I think rebooting the COM and END helped)

I guess I should boil this back to my requirements - I want to send my GEM data to both the DB (and onwards to SEG and ISY) but also want to use btmon.py to try some of the other services. What is the right want to do this?
ben
Site Admin
Posts: 4262
Joined: Fri Jun 04, 2010 9:39 am

Re: COM 3.24 Firmware

Post by ben » Mon Feb 23, 2015 10:39 am

Port 8001 interrupts data logging and allows you to service the GEM.

Can you run a serial-to-USB cable to your box running btmon? You can hook up through the Tx header and listen in.
Ben
Brultech Research Inc.
E: ben(at)brultech.com
scyto
Posts: 258
Joined: Sun Apr 06, 2014 7:24 pm

Re: COM 3.24 Firmware

Post by scyto » Tue Feb 24, 2015 1:34 am

ben wrote:Port 8001 interrupts data logging and allows you to service the GEM.

Can you run a serial-to-USB cable to your box running btmon? You can hook up through the Tx header and listen in.
I guess, it's a raspberry pi, what's the wiring for the TX header?

Of course would be great if the DB could multiplex / emulate the GEM someways?
scyto
Posts: 258
Joined: Sun Apr 06, 2014 7:24 pm

Re: COM 3.24 Firmware

Post by scyto » Mon Mar 09, 2015 12:11 am

Or better question:

Given I am not using the xbee module and can now plug the GEM into a CAT5 port is there a way to leverage the 2 COM ports on the GEM differently?

For example should I turn off wifi and xbee and configure btmon.py to access the GEM via the 8002 port?

Or should I configure btmon.py to access the GEM over the network in someway?

Or should I connect the btmon.py with serial in someway?
ben
Site Admin
Posts: 4262
Joined: Fri Jun 04, 2010 9:39 am

Re: COM 3.24 Firmware

Post by ben » Mon Mar 09, 2015 9:53 am

scyto wrote:
ben wrote:Port 8001 interrupts data logging and allows you to service the GEM.

Can you run a serial-to-USB cable to your box running btmon? You can hook up through the Tx header and listen in.
I guess, it's a raspberry pi, what's the wiring for the TX header?

Of course would be great if the DB could multiplex / emulate the GEM someways?
GEM Communication layout.png
GEM Communication layout.png (156.2 KiB) Viewed 2153 times
scyto wrote:Or better question:

Given I am not using the xbee module and can now plug the GEM into a CAT5 port is there a way to leverage the 2 COM ports on the GEM differently?

For example should I turn off wifi and xbee and configure btmon.py to access the GEM via the 8002 port?

Or should I configure btmon.py to access the GEM over the network in someway?

Or should I connect the btmon.py with serial in someway?
The GEM can send 2 different packet formats. If you're not using Xbee, you're best off putting the DashBox on COM2 as COM2 is limited in terms of what it can send (only fixed-length packet formats).

If you have WiFi, Ethernet, or WiFi/Ethernet, that's on COM1.
Ben
Brultech Research Inc.
E: ben(at)brultech.com
scyto
Posts: 258
Joined: Sun Apr 06, 2014 7:24 pm

Re: COM 3.24 Firmware

Post by scyto » Mon Mar 09, 2015 11:00 am

Thanks, I did read the manual but found that picture and accompanying text hard to parse.

So I think you are suggesting connect the DashBox to Com2, disable the xbee and connect btmon.py over the Ethernet to the GEM.

Right? (sorry to be dense here)
Post Reply