[YGGDRASIL-13] Improve application output Created: 15/May/09  Updated: 15/May/09

Status: Open
Project: yggdrasil
Component/s: YggdrasilHost
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Major
Reporter: vipul_gupta Assignee: arshan
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: Macintosh


Issuezilla Id: 13

 Description   

I was running the Yggdrasil demo bundled with the beta version of the Red SDK in my office and
noticed lots of printouts like:

[java] ---------
[java] event arrived : Fri May 15 11:46:27 PDT 2009
[java] event time : Fri May 15 09:36:31 PDT 2009
[java] event type : 32
[java] ---------
[java] event arrived : Fri May 15 11:46:28 PDT 2009
[java] event time : Fri May 15 09:44:06 PDT 2009
[java] event type : 32
[java] ---------
[java] event arrived : Fri May 15 11:46:30 PDT 2009
[java] event time : Thu May 14 13:08:36 PDT 2009
[java] event type : 32
[java] ---------

There are a couple of issues here:
1. The message as is doesn't convey any meaningful information to the user. Converting the event type
to a more meaningful string will help.
2. The output could be made to convey the same information in much less space. Here's one possible
example:

2009-05-15 11:46:27 Received event type 32 (timestamp: 2009-05-15 09:36:31)



 Comments   
Comment by vipul_gupta [ 15/May/09 ]

Similarly, when the sample data comes in, it is currently printed as:

[java] ---------
[java] event arrived : Fri May 15 11:46:03 PDT 2009
[java] event time : Fri May 15 11:45:40 PDT 2009
[java] event type : 5
[java] Sample received from: 0014.4F01.0000.020B
[java]
[java] Name: eDemoSensors
[java] Description: a sensor to read a bunch of values from the eDemoBoard
[java] Value Name: temperature
[java] 27.0
[java]
[java] Value Name: light
[java] 188.0
[java]
[java] Value Name: acceleration
[java] 0.9610880944249427
[java]
[java] ---------
[java] event arrived : Fri May 15 11:46:03 PDT 2009
[java] event time : Fri May 15 11:45:20 PDT 2009
[java] event type : 5
[java] Sample received from: 0014.4F01.0000.020B
[java]
[java] Name: eDemoSensors
[java] Description: a sensor to read a bunch of values from the eDemoBoard
[java] Value Name: temperature
[java] 27.0
[java]
[java] Value Name: light
[java] 186.0
[java]
[java] Value Name: acceleration
[java] 0.9715647798014488
[java]
[java] ---------

This can be made more compact and it would really be nice if the system sent samples in timestamp
order (especially when there isn't any reordering due to loss/retransmission), e.g.

2009-05-15 11:46:03 Received data sample event from 0014.4F01.0000.020B
eDemoSensors (a sensor to read a bunch of values from eDemoBoard)
temperature: 27.0, light: 188.0, acceleration: 0.96108

Generated at Fri Feb 05 22:32:24 UTC 2016 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.