Mantis Bug Tracker

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000288FirmwareSerial Commspublic2011-10-06 13:532011-10-15 22:19
Assigned ToFred 
PlatformOSOS Version
Product Version0.2.0-SNAPSHOT 
Target Version0.2.0Fixed in Version0.2.0 
Summary0000288: Make default log include good comms debug
DescriptionAdd two summary comms counters and add those and overruns to the default log in a clean struct, then fix MTX and OLV to read them.
TagsNo tags attached.
Issue TypeImprovement
Risk of Breakagelow
Attached Files

- Relationships

-  Notes
User avatar (0000355)
Fred (administrator)
2011-10-08 10:51

Scrap this idea, include some counters in the temporary log for evaluation, and instead of the above, setup a pair of clever macros that take a number from 0-7 or 0-15 and the address of a struct of bytes (even number up to 2-16 long) or shorts (1-16 long) unioned with an array and increment the Nth value in the struct by the array, and use the passed in number to left shift 1 to form a mask and set that bit in an associated status byte or pair of bytes. This came to me late at night while doing inappropriate things and was based on EssEss' suggestin :-)
User avatar (0000358)
Fred (administrator)
2011-10-08 14:05

Things to include here are:

 * checksum fails and other code comms issues, one bit each
 * uart hardware level errors, one bit each
 * loss of sync, general, and one for each type
 * UISR executed

And possibly others.
User avatar (0000379)
Fred (administrator)
2011-10-12 00:24

Added key stuff to logging. Yet to implement the auto flag idea. Counters are all exposed for retrieval now, though.
User avatar (0000381)
Fred (administrator)
2011-10-12 11:27

Done! Just OLV/MTX changes to go now.
User avatar (0000387)
Fred (administrator)
2011-10-15 00:28

OLV done. Firmware dev tomorrow, then MTX updates, then close this.
User avatar (0000388)
Fred (administrator)
2011-10-15 19:43

MTX is done, just testing now.
User avatar (0000389)
Fred (administrator)
2011-10-15 20:04

There is an issue, I think in the firmware, with this, I'll fix it after dinner.
User avatar (0000390)
Fred (administrator)
2011-10-15 22:19

Fully available, tested and working with OLV and MTX support in revisions:

FreeEMS: 16a775a2c3d27c4f5ed8b1964f974131dcd1b1b1
MTX: e4d6297652a419eb71f1125dd072ae5eea8f72d6
OLV: 49b1d6faf3a018972a6f9724efb13b00565e50d1

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker