Best way to monitor 2 ECM-1240s w/ btmon?

Post any 3rd party software here.
Dax333
Posts: 5
Joined: Tue Oct 07, 2014 4:53 pm

Re: Best way to monitor 2 ECM-1240s w/ btmon?

Post by Dax333 » Tue Dec 02, 2014 11:00 pm

deleted
Last edited by Dax333 on Tue Dec 02, 2014 11:13 pm, edited 1 time in total.
sandeen
Posts: 41
Joined: Fri Jan 10, 2014 3:33 pm

Re: Best way to monitor 2 ECM-1240s w/ btmon?

Post by sandeen » Tue Dec 02, 2014 11:10 pm

Testing using btmon 301 and 303.
FWIW, I'm using 3.0.7 (from http://lancet.mit.edu/mwall/projects/po ... -1.0.3.tgz), which seems latest (with my local hacks, though I don't think any should matter for this). (Hm, and 3.0.5 on the PIs, for some reason...)

What if you run the "collect" instance with --verbose or --debug and see what it says? IIRC it's pretty explicit about what it's doing at each step along the way.

I think I do have my ecm's in "realtime" mode, IIRC - at least, the serial poll interval is commented out in the config files.
Dax333
Posts: 5
Joined: Tue Oct 07, 2014 4:53 pm

Re: Best way to monitor 2 ECM-1240s w/ btmon?

Post by Dax333 » Tue Dec 02, 2014 11:35 pm

Ran both instances with --debug. Also upgraded to btmon 3.0.7
Hopefully the files I attached come through. Had to zip them to submit
Attachments
Scripts&logs.zip
(27.52 KiB) Downloaded 161 times
sandeen
Posts: 41
Joined: Fri Jan 10, 2014 3:33 pm

Re: Best way to monitor 2 ECM-1240s w/ btmon?

Post by sandeen » Wed Dec 03, 2014 12:14 am

Did you let it run for 4-5 minutes? There's definitely some latency introduced in the round-trip through the database...
Dax333
Posts: 5
Joined: Tue Oct 07, 2014 4:53 pm

Re: Best way to monitor 2 ECM-1240s w/ btmon?

Post by Dax333 » Wed Dec 03, 2014 12:48 am

Fixed rPi local time. Deleted Database ecm. Ran collector for 10 minutes. Ran uploader after the first 5 minutes for the remaining time. Including Mysql config in the zip this time although it's pretty vanilla.

Same results.
Attachments
Archive.zip
(137.71 KiB) Downloaded 172 times
sandeen
Posts: 41
Joined: Fri Jan 10, 2014 3:33 pm

Re: Best way to monitor 2 ECM-1240s w/ btmon?

Post by sandeen » Wed Dec 03, 2014 12:56 am

Hm, lots of

Code: Select all

2014/12/02 21:38:41 DB: found 0 rows since 1417584803
on the uploader end, despite

Code: Select all

2014/12/02 21:38:23 DB: inserted 16 values for redacted at 1417585101
2014/12/02 21:38:23 DB: inserted 16 values for redacted at 1417585102
on the collector end, were inserted prior to the check, and have later timestamps.

I'm definitely not a mysql expert. :( I don't remember doing anything special, but it seems like the reads are not finding the most recent updates.
mark_anderson_us
Posts: 61
Joined: Thu Oct 28, 2010 6:17 pm

Re: Best way to monitor 2 ECM-1240s w/ btmon?

Post by mark_anderson_us » Wed Dec 03, 2014 7:46 am

Dax333 wrote:For this to work I assume I have to take my ecm's out of real time mode?

I tested the settings but get:
2014/12/03 03:22:35 wrong response 0x0, expected 0xfc
2014/12/03 03:22:35 wrong response 0x41, expected 0xfc
2014/12/03 03:22:35 wrong response 0x0, expected 0xfc
2014/12/03 03:22:35 3 requests failed for device fc

The SQL approach from Sandeen looked useful because I could gather real time info into MySQL and then disseminate it as needed.
Yeah, I took mine out of real-time mode
Post Reply