Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: YggdrasilHost
    • Labels:
      None
    • 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)

        Activity

        Hide
        vipul_gupta added a comment -

        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

        Show
        vipul_gupta added a comment - 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

          People

          • Assignee:
            arshan
            Reporter:
            vipul_gupta
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: