PDA

View Full Version : Status Message Markers


hamish
March 8th, 2010, 07:50 AM
Here is a problem that I've come up against when parsing Status messages with the % replaceable parameters.

In Table B-1 there are two format Markers, %d & %x and there is one Specifier %L for a Slot Label.

When producing an informative Status message for a UI, instead of printing "Sensor 2 out of range", printing "Sensor Array Temperature out of range" would be more helpful. The user does not want to go look up what sensor 2 is.

To achieve the above, involves parsing the Message to look for the string "Sensor" before inserting the sensor description.

Offering an additional marker such as %S specifically for sensor indexes would greatly simplify this process and make it more robust for Manufacturer defined Status Messages

sblair
March 8th, 2010, 11:18 AM
Hamish,

There are probably a number of good extensions that we could do there. This would be a good topic for us at the July meetings.

hamish
October 28th, 2010, 10:22 AM
Scott

This is the thread detailing the problem I have with the replaceable parameters that I didn't explain accurately at the last CPWG

Again, this is an issue that I would like to make some progress on, especially in light of renewed focus on status messages.

sblair
November 2nd, 2010, 11:33 PM
Agreed. I think there is a lot of potential here. Would love to see what other options we might want to include here beyond just sensors.

jack3678
December 10th, 2010, 12:12 AM
HI Hamish, i was also facing same Status Message prob .....
Thanks for u commands this information solved my status massage ....
Thanks lot ...... :)

Regards
Jack
<a href="http://www.zframez.com"