esitarski / CrossMgr

Cyclo Cross Management Application
MIT License
41 stars 21 forks source link

[SEVERE] [Py3 update] ImpinjData is not being saved by CrossMgrImpinj 3.0.0 #29

Closed rkantos closed 5 years ago

rkantos commented 5 years ago

Just noticed this, when running CrossMgrImpinj 3.0.0. No backup data is saved to the path CrossMgrImpinj 3.0.0 shows and seemingly not in any other path either. Tested on Ubuntu 16.04.6 and Windows 7 on two different computers. With CrossMgrImpinj version 2.21.19 everything works ok.

I also tested with newer versions 3.0.1 and 3.0.2, and it seems the same issue is present, with the addition of my Motorola FX9500 reader not reading tags at all. With 2.xx and 3.0.0 tags are still read normally in "First Read Time" -mode.

LOG from 3.0.2 (with about 150 tags in front of the antenna...):

*****************************************
Reader Server Started: (192.168.1.232:5084)

Trying to Connect to Reader: (192.168.1.232:5084)...
ConnectionTimeout=3.00 seconds
Connected to: (192.168.1.232:5084)
Waiting for READER_EVENT_NOTIFICATION...

Received Response:
READER_EVENT_NOTIFICATION(
  MessageID=490,
  Parameters=[
    ReaderEventNotificationData(
      Parameters=[
        UTCTimestamp( Microseconds=1563819069429894 ),
        ConnectionAttemptEvent( Status=ConnectionAttemptStatusType.Success ),
      ]
    ),
  ]
)

Reader time is 10798.543661 seconds different from computer time

-----------------------------------------------------
Sending Message:
SET_READER_CONFIG(
  MessageID=17,
  ResetToFactoryDefault=True,
)

Received Response:
SET_READER_CONFIG_RESPONSE(
  MessageID=17,
  Parameters=[
    LLRPStatus(
      StatusCode=StatusCode.M_Success,
      ErrorDescription='',
    ),
  ]
)

-----------------------------------------------------
Sending Message:
GET_READER_CONFIG(
  MessageID=18,
  AntennaID=0,
  RequestedData=GetReaderConfigRequestedData.AntennaProperties,
  GPIPortNum=0,
  GPOPortNum=0,
)

Received Response:
GET_READER_CONFIG_RESPONSE(
  MessageID=18,
  Parameters=[
    LLRPStatus(
      StatusCode=StatusCode.M_Success,
      ErrorDescription='',
    ),
    AntennaProperties(
      AntennaConnected=True,
      AntennaID=1,
      AntennaGain=600,
    ),
    AntennaProperties(
      AntennaConnected=False,
      AntennaID=2,
      AntennaGain=600,
    ),
    AntennaProperties(
      AntennaConnected=False,
      AntennaID=3,
      AntennaGain=600,
    ),
    AntennaProperties(
      AntennaConnected=False,
      AntennaID=4,
      AntennaGain=600,
    ),
    AntennaProperties(
      AntennaConnected=False,
      AntennaID=5,
      AntennaGain=600,
    ),
    AntennaProperties(
      AntennaConnected=False,
      AntennaID=6,
      AntennaGain=600,
    ),
    AntennaProperties(
      AntennaConnected=False,
      AntennaID=7,
      AntennaGain=600,
    ),
    AntennaProperties(
      AntennaConnected=False,
      AntennaID=8,
      AntennaGain=600,
    ),
  ]
)

-----------------------------------------------------
Sending Message:
SET_READER_CONFIG(
  MessageID=19,
  ResetToFactoryDefault=False,
  Parameters=[
    AntennaConfiguration(
      AntennaID=0,
      Parameters=[
        C1G2InventoryCommand(
          TagInventoryStateAware=False,
          Parameters=[
            C1G2SingulationControl(
              Session=2,
              TagPopulation=4,
              TagTransitTime=3000,
            ),
          ]
        ),
      ]
    ),
    KeepaliveSpec(
      KeepaliveTriggerType=KeepaliveTriggerType.Periodic,
      PeriodicTriggerValue=2000,
    ),
  ]
)

Received Response:
SET_READER_CONFIG_RESPONSE(
  MessageID=19,
  Parameters=[
    LLRPStatus(
      StatusCode=StatusCode.M_Success,
      ErrorDescription='',
    ),
  ]
)

-----------------------------------------------------
Sending Message:
DISABLE_ROSPEC(
  MessageID=20,
  ROSpecID=0,
)

Received Response:
DISABLE_ROSPEC_RESPONSE(
  MessageID=20,
  Parameters=[
    LLRPStatus(
      StatusCode=StatusCode.M_Success,
      ErrorDescription='',
    ),
  ]
)

-----------------------------------------------------
Sending Message:
DELETE_ROSPEC(
  MessageID=21,
  ROSpecID=123,
)

Received Response:
DELETE_ROSPEC_RESPONSE(
  MessageID=21,
  Parameters=[
    LLRPStatus(
      StatusCode=StatusCode.M_Success,
      ErrorDescription='',
    ),
  ]
)

-----------------------------------------------------
Sending Message:
GET_READER_CAPABILITIES(
  MessageID=22,
  RequestedData=GetReaderCapabilitiesRequestedData.All,
)

Get response fails: (1023, 161, 1)
GET_READER_CAPABILITIES Exception: 'bool' object is not iterable:
Traceback (most recent call last):
  File "/home/k/Ajanotto/CrossMgr-fork/CrossMgrImpinj/Impinj.py", line 316, in sendCommands
    success, response = self.sendCommand(GET_READER_CAPABILITIES_Message(RequestedData = GetReaderCapabilitiesRequestedData.All))
TypeError: 'bool' object is not iterable

-----------------------------------------------------
Sending Message:
ADD_ROSPEC(
  MessageID=23,
  Parameters=[
    ROSpec(
      ROSpecID=123,
      Priority=0,
      CurrentState=ROSpecState.Disabled,
      Parameters=[
        ROBoundarySpec(
          Parameters=[
            ROSpecStartTrigger( ROSpecStartTriggerType=ROSpecStartTriggerType.Immediate ),
            ROSpecStopTrigger(
              ROSpecStopTriggerType=ROSpecStopTriggerType.Null,
              DurationTriggerValue=0,
            ),
          ]
        ),
        AISpec(
          AntennaIDs=[1],
          Parameters=[
            AISpecStopTrigger(
              AISpecStopTriggerType=AISpecStopTriggerType.Tag_Observation,
              DurationTrigger=0,
              Parameters=[
                TagObservationTrigger(
                  TriggerType=TagObservationTriggerType.Upon_Seeing_N_Tags_Or_Timeout,
                  NumberOfTags=500,
                  NumberOfAttempts=1,
                  T=0,
                  Timeout=500,
                ),
              ]
            ),
            InventoryParameterSpec(
              InventoryParameterSpecID=1234,
              ProtocolID=AirProtocols.EPCGlobalClass1Gen2,
            ),
          ]
        ),
        ROReportSpec(
          ROReportTrigger=ROReportTriggerType.Upon_N_Tags_Or_End_Of_ROSpec,
          N=0,
          Parameters=[
            TagReportContentSelector(
              EnableROSpecID=False,
              EnableSpecIndex=False,
              EnableInventoryParameterSpecID=False,
              EnableAntennaID=True,
              EnableChannelIndex=False,
              EnablePeakRSSI=False,
              EnableFirstSeenTimestamp=True,
              EnableLastSeenTimestamp=False,
              EnableTagSeenCount=False,
              EnableAccessSpecID=False,
            ),
          ]
        ),
      ]
    ),
  ]
)

Received Response:
ADD_ROSPEC_RESPONSE(
  MessageID=23,
  Parameters=[
    LLRPStatus(
      StatusCode=StatusCode.M_Success,
      ErrorDescription='',
    ),
  ]
)

-----------------------------------------------------
Sending Message:
ENABLE_ROSPEC(
  MessageID=24,
  ROSpecID=123,
)

Received Response:
ENABLE_ROSPEC_RESPONSE(
  MessageID=24,
  Parameters=[
    LLRPStatus(
      StatusCode=StatusCode.M_Success,
      ErrorDescription='',
    ),
  ]
)
rkantos commented 5 years ago

In addition to Motorola FX9500 no longer reading tags with CrossMgrImpinj 3.0.1 and 3.0.2, CrossMgrImpinj no longer shows that the connection to the reader is disconnected when unplugging the cable for example. No reconnection attemps seem to be made at all, the program seems to halt completely after initializing the reader and showing green on the left (reader) status page.

esitarski commented 5 years ago

OK. In CrossMgrImpinj, there is a clipboard icon on the screen. Pressing this will copy the log to the clipboard. Please copy the log to the clipboard, then paste it into an entry. This should show where the problem is.

On Mon, Jul 22, 2019 at 2:27 PM rkantos notifications@github.com wrote:

In addition to Motorola FX9500 no longer reading tags with CrossMgrImpinj 3.0.1 and 3.0.2, CrossMgrImpinj no longer shows that the connection to the reader is disconnected when unplugging the cable for example. No reconnection attemps seem to be made at all, the program seems to halt completely after initializing the reader and showing green on the left (reader) status page.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/esitarski/CrossMgr/issues/29?email_source=notifications&email_token=AABGXKLBHHBUBQV4ZWHKHBDQAX3X7A5CNFSM4IF3F34KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2QXZBY#issuecomment-513899655, or mute the thread https://github.com/notifications/unsubscribe-auth/AABGXKK567DVZJVR4YFUVDTQAX3X7ANCNFSM4IF3F34A .

--

Edward Sitarski

rkantos commented 5 years ago

OK. In CrossMgrImpinj, there is a clipboard icon on the screen. Pressing this will copy the log to the clipboard. Please copy the log to the clipboard, then paste it into an entry. This should show where the problem is. On Mon, Jul 22, 2019 at 2:27 PM rkantos @.***> wrote: In addition to Motorola FX9500 no longer reading tags with CrossMgrImpinj 3.0.1 and 3.0.2, CrossMgrImpinj no longer shows that the connection to the reader is disconnected when unplugging the cable for example. No reconnection attemps seem to be made at all, the program seems to halt completely after initializing the reader and showing green on the left (reader) status page. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#29?email_source=notifications&email_token=AABGXKLBHHBUBQV4ZWHKHBDQAX3X7A5CNFSM4IF3F34KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2QXZBY#issuecomment-513899655>, or mute the thread https://github.com/notifications/unsubscribe-auth/AABGXKK567DVZJVR4YFUVDTQAX3X7ANCNFSM4IF3F34A . -- Edward Sitarski

Ah, yes, I forgot about that. On Linux CrossMgrImpinj doesn't seem to print logs to console either when running the MainWin.py.

CrossMgrImpinj 3.0.1
Configuration: CrossMgrImpinj
    RunningTime:   00:00:27
    Time:          22:06:47
    BackupFile:    C:\Users\user\ImpinjData\Impinj-2019-07-22-22-06-41.txt

Configuration: Impinj:
    Use Host Name: False
    HostName:      SpeedwayR-00-00-00.local
    ImpinjHost:    192.168.1.232
    ImpinjPort:    5084
    ReportMethod:  First Read Time
    AntennaChoice: Max Signal dB
    RemoveOutliers:120

    ConnectionTimeoutSeconds: 3
    KeepaliveSeconds:         2
    RepeatSeconds:            120

Configuration: CrossMgr
    CrossMgrHost:  127.0.0.1
    CrossMgrPort:  53135

Log: Impinj
    *****************************************
    Reader Server Started: (192.168.1.232:5084)

    Trying to Connect to Reader: (192.168.1.232:5084)...
    ConnectionTimeout=3.00 seconds
    Connected to: (192.168.1.232:5084)
    Waiting for READER_EVENT_NOTIFICATION...
    Send Command Error=timed out
    Reader Initialization Failed.
    Disconnecting Reader.
    Attempting Reconnect in 2 seconds...

    Trying to Connect to Reader: (192.168.1.232:5084)...
    ConnectionTimeout=3.00 seconds
    Connected to: (192.168.1.232:5084)
    Waiting for READER_EVENT_NOTIFICATION...

    Received Response:
    READER_EVENT_NOTIFICATION(
      MessageID=2,
      Parameters=[
        ReaderEventNotificationData(
          Parameters=[
            UTCTimestamp( Microseconds=1563822408446103 ),
            ConnectionAttemptEvent( Status=ConnectionAttemptStatusType.Success ),
          ]
        ),
      ]
    )

    Reader time is 10798.23466 seconds different from computer time

    -----------------------------------------------------
    Sending Message:
    SET_READER_CONFIG(
      MessageID=2,
      ResetToFactoryDefault=True,
    )

    Received Response:
    SET_READER_CONFIG_RESPONSE(
      MessageID=2,
      Parameters=[
        LLRPStatus(
          StatusCode=StatusCode.M_Success,
          ErrorDescription='',
        ),
      ]
    )

    -----------------------------------------------------
    Sending Message:
    GET_READER_CONFIG(
      MessageID=3,
      AntennaID=0,
      RequestedData=GetReaderConfigRequestedData.AntennaProperties,
      GPIPortNum=0,
      GPOPortNum=0,
    )

    Received Response:
    GET_READER_CONFIG_RESPONSE(
      MessageID=3,
      Parameters=[
        LLRPStatus(
          StatusCode=StatusCode.M_Success,
          ErrorDescription='',
        ),
        AntennaProperties(
          AntennaConnected=True,
          AntennaID=1,
          AntennaGain=600,
        ),
        AntennaProperties(
          AntennaConnected=False,
          AntennaID=2,
          AntennaGain=600,
        ),
        AntennaProperties(
          AntennaConnected=False,
          AntennaID=3,
          AntennaGain=600,
        ),
        AntennaProperties(
          AntennaConnected=False,
          AntennaID=4,
          AntennaGain=600,
        ),
        AntennaProperties(
          AntennaConnected=False,
          AntennaID=5,
          AntennaGain=600,
        ),
        AntennaProperties(
          AntennaConnected=False,
          AntennaID=6,
          AntennaGain=600,
        ),
        AntennaProperties(
          AntennaConnected=False,
          AntennaID=7,
          AntennaGain=600,
        ),
        AntennaProperties(
          AntennaConnected=False,
          AntennaID=8,
          AntennaGain=600,
        ),
      ]
    )

    -----------------------------------------------------
    Sending Message:
    SET_READER_CONFIG(
      MessageID=4,
      ResetToFactoryDefault=False,
      Parameters=[
        AntennaConfiguration(
          AntennaID=0,
          Parameters=[
            C1G2InventoryCommand(
              TagInventoryStateAware=False,
              Parameters=[
                C1G2SingulationControl(
                  Session=2,
                  TagPopulation=4,
                  TagTransitTime=3000,
                ),
              ]
            ),
          ]
        ),
        KeepaliveSpec(
          KeepaliveTriggerType=KeepaliveTriggerType.Periodic,
          PeriodicTriggerValue=2000,
        ),
      ]
    )

    Received Response:
    SET_READER_CONFIG_RESPONSE(
      MessageID=4,
      Parameters=[
        LLRPStatus(
          StatusCode=StatusCode.M_Success,
          ErrorDescription='',
        ),
      ]
    )

    -----------------------------------------------------
    Sending Message:
    DISABLE_ROSPEC(
      MessageID=5,
      ROSpecID=0,
    )

    Received Response:
    DISABLE_ROSPEC_RESPONSE(
      MessageID=5,
      Parameters=[
        LLRPStatus(
          StatusCode=StatusCode.M_Success,
          ErrorDescription='',
        ),
      ]
    )

    -----------------------------------------------------
    Sending Message:
    DELETE_ROSPEC(
      MessageID=6,
      ROSpecID=123,
    )

    Received Response:
    DELETE_ROSPEC_RESPONSE(
      MessageID=6,
      Parameters=[
        LLRPStatus(
          StatusCode=StatusCode.M_FieldError,
          ErrorDescription='DELETE_ROSPEC: RO Spec ID (123) does not currently exists on the reader',
        ),
      ]
    )

    -----------------------------------------------------
    Sending Message:
    GET_READER_CAPABILITIES(
      MessageID=7,
      RequestedData=GetReaderCapabilitiesRequestedData.All,
    )

    Get response fails: (1023, 161, 1)
    GET_READER_CAPABILITIES Exception: cannot unpack non-iterable bool object:
    Traceback (most recent call last):
      File "CrossMgr\CrossMgrImpinj\Impinj.py", line 316, in sendCommands
    TypeError: cannot unpack non-iterable bool object

    -----------------------------------------------------
    Sending Message:
    ADD_ROSPEC(
      MessageID=8,
      Parameters=[
        ROSpec(
          ROSpecID=123,
          Priority=0,
          CurrentState=ROSpecState.Disabled,
          Parameters=[
            ROBoundarySpec(
              Parameters=[
                ROSpecStartTrigger( ROSpecStartTriggerType=ROSpecStartTriggerType.Immediate ),
                ROSpecStopTrigger(
                  ROSpecStopTriggerType=ROSpecStopTriggerType.Null,
                  DurationTriggerValue=0,
                ),
              ]
            ),
            AISpec(
              AntennaIDs=[1],
              Parameters=[
                AISpecStopTrigger(
                  AISpecStopTriggerType=AISpecStopTriggerType.Tag_Observation,
                  DurationTrigger=0,
                  Parameters=[
                    TagObservationTrigger(
                      TriggerType=TagObservationTriggerType.Upon_Seeing_N_Tags_Or_Timeout,
                      NumberOfTags=500,
                      NumberOfAttempts=1,
                      T=0,
                      Timeout=500,
                    ),
                  ]
                ),
                InventoryParameterSpec(
                  InventoryParameterSpecID=1234,
                  ProtocolID=AirProtocols.EPCGlobalClass1Gen2,
                ),
              ]
            ),
            ROReportSpec(
              ROReportTrigger=ROReportTriggerType.Upon_N_Tags_Or_End_Of_ROSpec,
              N=0,
              Parameters=[
                TagReportContentSelector(
                  EnableROSpecID=False,
                  EnableSpecIndex=False,
                  EnableInventoryParameterSpecID=False,
                  EnableAntennaID=True,
                  EnableChannelIndex=False,
                  EnablePeakRSSI=False,
                  EnableFirstSeenTimestamp=True,
                  EnableLastSeenTimestamp=False,
                  EnableTagSeenCount=False,
                  EnableAccessSpecID=False,
                ),
              ]
            ),
          ]
        ),
      ]
    )

    Received Response:
    ADD_ROSPEC_RESPONSE(
      MessageID=8,
      Parameters=[
        LLRPStatus(
          StatusCode=StatusCode.M_Success,
          ErrorDescription='',
        ),
      ]
    )

    -----------------------------------------------------
    Sending Message:
    ENABLE_ROSPEC(
      MessageID=9,
      ROSpecID=123,
    )

    Received Response:
    ENABLE_ROSPEC_RESPONSE(
      MessageID=9,
      Parameters=[
        LLRPStatus(
          StatusCode=StatusCode.M_Success,
          ErrorDescription='',
        ),
      ]
    )

Log: CrossMgr
    Trying to connect to CrossMgr as "R-X220-19656-9488"...
    CrossMgr Connection Failed.  Trying as "R-X220-19656-9488" in 2 sec...
    CrossMgr Connection Failed.  Trying as "R-X220-19656-9488" in 2 sec...

Log: Application

********************************************

2019-07-19_08:40:34: CrossMgrImpinj 3.0.1 Started.

********************************************

2019-07-19_15:13:45: CrossMgrImpinj 3.0.1 Started.

********************************************

2019-07-19_15:33:55: CrossMgrImpinj 3.0.1 Started.

Exception in thread ImpinjProcess:

Traceback (most recent call last):

  File "threading.py", line 917, in _bootstrap_inner

  File "threading.py", line 865, in run

  File "CrossMgr\CrossMgrImpinj\Impinj.py", line 597, in ImpinjServer

  File "CrossMgr\CrossMgrImpinj\Impinj.py", line 481, in runServer

  File "CrossMgr\CrossMgrImpinj\Impinj.py", line 391, in handleTagGroup

  File "CrossMgr\CrossMgrImpinj\TagGroup.py", line 169, in getReadsStrays

NameError: name 'items' is not defined

********************************************

2019-07-19_15:36:01: CrossMgrImpinj 3.0.1 Started.

Exception in thread ImpinjProcess:

Traceback (most recent call last):

  File "threading.py", line 917, in _bootstrap_inner

  File "threading.py", line 865, in run

  File "CrossMgr\CrossMgrImpinj\Impinj.py", line 597, in ImpinjServer

  File "CrossMgr\CrossMgrImpinj\Impinj.py", line 481, in runServer

  File "CrossMgr\CrossMgrImpinj\Impinj.py", line 391, in handleTagGroup

  File "CrossMgr\CrossMgrImpinj\TagGroup.py", line 169, in getReadsStrays

NameError: name 'items' is not defined

********************************************

2019-07-19_15:39:14: CrossMgrImpinj 2.21.19 Started.

********************************************

2019-07-19_15:52:25: CrossMgrImpinj 2.21.19 Started.

Exception in thread ImpinjProcess:

Traceback (most recent call last):

  File "threading.py", line 801, in __bootstrap_inner

  File "threading.py", line 754, in run

  File "CrossMgr\CrossMgrImpinj\Impinj.py", line 596, in ImpinjServer

  File "CrossMgr\CrossMgrImpinj\Impinj.py", line 491, in runServer

  File "CrossMgr\CrossMgrImpinj\pyllrp\pyllrp.py", line 714, in UnpackMessageFromSocket

error: [Errno 10054] An existing connection was forcibly closed by the remote host

Exception in thread Thread-939 (most likely raised during interpreter shutdown):Exception in thread Thread-937 (most likely raised during interpreter shutdown):

Traceback (most recent call last):Exception in thread Thread-938 (most likely raised during interpreter shutdown):Traceback (most recent call last):

  File "threading.py", line 801, in __bootstrap_innerTraceback (most recent call last):  File "threading.py", line 801, in __bootstrap_inner

  File "threading.py", line 801, in __bootstrap_inner  File "threading.py", line 1071, in run  File "threading.py", line 1071, in run

  File "threading.py", line 1071, in run  File "threading.py", line 614, in wait  File "threading.py", line 614, in wait

  File "threading.py", line 614, in wait  File "threading.py", line 355, in wait

  File "threading.py", line 355, in wait  File "threading.py", line 355, in wait<type 'exceptions.TypeError'>: 'NoneType' object is not callable

<type 'exceptions.TypeError'>: 'NoneType' object is not callable<type 'exceptions.TypeError'>: 'NoneType' object is not callable

********************************************

2019-07-19_16:00:16: CrossMgrImpinj 2.21.19 Started.

********************************************

2019-07-19_16:50:49: CrossMgrImpinj 2.21.19 Started.

********************************************

2019-07-22_20:42:47: CrossMgrImpinj 2.21.19 Started.

********************************************

2019-07-22_20:50:15: CrossMgrImpinj 2.21.19 Started.

********************************************

2019-07-22_20:51:00: CrossMgrImpinj 3.0.0 Started.

********************************************

2019-07-22_21:04:39: CrossMgrImpinj 3.0.1 Started.

********************************************

2019-07-22_21:05:21: CrossMgrImpinj 3.0.1 Started.

********************************************

2019-07-22_21:06:34: CrossMgrImpinj 3.0.1 Started.

********************************************

2019-07-22_21:19:44: CrossMgrImpinj 3.0.1 Started.

********************************************

2019-07-22_22:03:09: CrossMgrImpinj 3.0.1 Started.

********************************************

2019-07-22_22:06:20: CrossMgrImpinj 3.0.1 Started.

And from 3.0.0:

CrossMgrImpinj 3.0.0
Configuration: CrossMgrImpinj
    RunningTime:   00:00:02
    Time:          22:11:38
    BackupFile:    C:\Users\user\ImpinjData\Impinj-2019-07-22-22-11-36.txt

Configuration: Impinj:
    Use Host Name: False
    HostName:      SpeedwayR-00-00-00.local
    ImpinjHost:    192.168.1.232
    ImpinjPort:    5084
    ReportMethod:  First Read Time
    AntennaChoice: Max Signal dB
    RemoveOutliers:120

    ConnectionTimeoutSeconds: 3
    KeepaliveSeconds:         2
    RepeatSeconds:            120

Configuration: CrossMgr
    CrossMgrHost:  127.0.0.1
    CrossMgrPort:  53135

Log: Impinj
    *****************************************
    Reader Server Started: (192.168.1.232:5084)

    Trying to Connect to Reader: (192.168.1.232:5084)...
    ConnectionTimeout=3.00 seconds
    Connected to: (192.168.1.232:5084)
    Waiting for READER_EVENT_NOTIFICATION...

    Received Response:
    READER_EVENT_NOTIFICATION(
      MessageID=142,
      Parameters=[
        ReaderEventNotificationData(
          Parameters=[
            UTCTimestamp( Microseconds=1563822698876123 ),
            ConnectionAttemptEvent( Status=ConnectionAttemptStatusType.Success ),
          ]
        ),
      ]
    )

    Reader time is 10798.317634 seconds different from computer time

    -----------------------------------------------------
    Sending Message:
    SET_READER_CONFIG(
      MessageID=1,
      ResetToFactoryDefault=True,
    )

    Received Response:
    SET_READER_CONFIG_RESPONSE(
      MessageID=1,
      Parameters=[
        LLRPStatus(
          StatusCode=StatusCode.M_Success,
          ErrorDescription='',
        ),
      ]
    )

    -----------------------------------------------------
    Sending Message:
    GET_READER_CONFIG(
      MessageID=2,
      AntennaID=0,
      RequestedData=GetReaderConfigRequestedData.AntennaProperties,
      GPIPortNum=0,
      GPOPortNum=0,
    )

    Received Response:
    GET_READER_CONFIG_RESPONSE(
      MessageID=2,
      Parameters=[
        LLRPStatus(
          StatusCode=StatusCode.M_Success,
          ErrorDescription='',
        ),
        AntennaProperties(
          AntennaConnected=True,
          AntennaID=1,
          AntennaGain=600,
        ),
        AntennaProperties(
          AntennaConnected=False,
          AntennaID=2,
          AntennaGain=600,
        ),
        AntennaProperties(
          AntennaConnected=False,
          AntennaID=3,
          AntennaGain=600,
        ),
        AntennaProperties(
          AntennaConnected=False,
          AntennaID=4,
          AntennaGain=600,
        ),
        AntennaProperties(
          AntennaConnected=False,
          AntennaID=5,
          AntennaGain=600,
        ),
        AntennaProperties(
          AntennaConnected=False,
          AntennaID=6,
          AntennaGain=600,
        ),
        AntennaProperties(
          AntennaConnected=False,
          AntennaID=7,
          AntennaGain=600,
        ),
        AntennaProperties(
          AntennaConnected=False,
          AntennaID=8,
          AntennaGain=600,
        ),
      ]
    )

    -----------------------------------------------------
    Sending Message:
    SET_READER_CONFIG(
      MessageID=3,
      ResetToFactoryDefault=False,
      Parameters=[
        AntennaConfiguration(
          AntennaID=0,
          Parameters=[
            C1G2InventoryCommand(
              TagInventoryStateAware=False,
              Parameters=[
                C1G2SingulationControl(
                  Session=2,
                  TagPopulation=4,
                  TagTransitTime=3000,
                ),
              ]
            ),
          ]
        ),
        KeepaliveSpec(
          KeepaliveTriggerType=KeepaliveTriggerType.Periodic,
          PeriodicTriggerValue=2000,
        ),
      ]
    )

    Received Response:
    SET_READER_CONFIG_RESPONSE(
      MessageID=3,
      Parameters=[
        LLRPStatus(
          StatusCode=StatusCode.M_Success,
          ErrorDescription='',
        ),
      ]
    )

    -----------------------------------------------------
    Sending Message:
    DISABLE_ROSPEC(
      MessageID=4,
      ROSpecID=0,
    )

    Received Response:
    DISABLE_ROSPEC_RESPONSE(
      MessageID=4,
      Parameters=[
        LLRPStatus(
          StatusCode=StatusCode.M_Success,
          ErrorDescription='',
        ),
      ]
    )

    -----------------------------------------------------
    Sending Message:
    DELETE_ROSPEC(
      MessageID=5,
      ROSpecID=123,
    )

    Received Response:
    DELETE_ROSPEC_RESPONSE(
      MessageID=5,
      Parameters=[
        LLRPStatus(
          StatusCode=StatusCode.M_Success,
          ErrorDescription='',
        ),
      ]
    )

    -----------------------------------------------------
    Sending Message:
    GET_READER_CAPABILITIES(
      MessageID=6,
      RequestedData=GetReaderCapabilitiesRequestedData.All,
    )

    Get response fails: (1023, 161, 1)
    GET_READER_CAPABILITIES Exception: cannot unpack non-iterable bool object:
    Traceback (most recent call last):
      File "CrossMgr\CrossMgrImpinj\Impinj.py", line 316, in sendCommands
    TypeError: cannot unpack non-iterable bool object

    -----------------------------------------------------
    Sending Message:
    ADD_ROSPEC(
      MessageID=7,
      Parameters=[
        ROSpec(
          ROSpecID=123,
          Priority=0,
          CurrentState=ROSpecState.Disabled,
          Parameters=[
            ROBoundarySpec(
              Parameters=[
                ROSpecStartTrigger( ROSpecStartTriggerType=ROSpecStartTriggerType.Immediate ),
                ROSpecStopTrigger(
                  ROSpecStopTriggerType=ROSpecStopTriggerType.Null,
                  DurationTriggerValue=0,
                ),
              ]
            ),
            AISpec(
              AntennaIDs=[1],
              Parameters=[
                AISpecStopTrigger(
                  AISpecStopTriggerType=AISpecStopTriggerType.Tag_Observation,
                  DurationTrigger=0,
                  Parameters=[
                    TagObservationTrigger(
                      TriggerType=TagObservationTriggerType.Upon_Seeing_N_Tags_Or_Timeout,
                      NumberOfTags=500,
                      NumberOfAttempts=1,
                      T=0,
                      Timeout=500,
                    ),
                  ]
                ),
                InventoryParameterSpec(
                  InventoryParameterSpecID=1234,
                  ProtocolID=AirProtocols.EPCGlobalClass1Gen2,
                ),
              ]
            ),
            ROReportSpec(
              ROReportTrigger=ROReportTriggerType.Upon_N_Tags_Or_End_Of_ROSpec,
              N=0,
              Parameters=[
                TagReportContentSelector(
                  EnableROSpecID=False,
                  EnableSpecIndex=False,
                  EnableInventoryParameterSpecID=False,
                  EnableAntennaID=True,
                  EnableChannelIndex=False,
                  EnablePeakRSSI=False,
                  EnableFirstSeenTimestamp=True,
                  EnableLastSeenTimestamp=False,
                  EnableTagSeenCount=False,
                  EnableAccessSpecID=False,
                ),
              ]
            ),
          ]
        ),
      ]
    )

    Received Response:
    ADD_ROSPEC_RESPONSE(
      MessageID=7,
      Parameters=[
        LLRPStatus(
          StatusCode=StatusCode.M_Success,
          ErrorDescription='',
        ),
      ]
    )

    -----------------------------------------------------
    Sending Message:
    ENABLE_ROSPEC(
      MessageID=8,
      ROSpecID=123,
    )

    Received Response:
    ENABLE_ROSPEC_RESPONSE(
      MessageID=8,
      Parameters=[
        LLRPStatus(
          StatusCode=StatusCode.M_Success,
          ErrorDescription='',
        ),
      ]
    )

    FirstRead 1. E28011606000020A34E9836E - 22:11:37.466739 antennaID=1
    FirstRead 2. E28011606000020A34E9F30D - 22:11:37.470739 antennaID=1
    FirstRead 3. E28011606000020A34E9F38E - 22:11:37.474739 antennaID=1
    FirstRead 4. E28011606000020A34E9831E - 22:11:37.477739 antennaID=1
    FirstRead 5. E20000179804002019404D1F - 22:11:37.484739 antennaID=1
    FirstRead 6. E28011606000020A34E971ED - 22:11:37.488739 antennaID=1
    FirstRead 7. E28011606000020A34E9834E - 22:11:37.492739 antennaID=1
    FirstRead 8. E28011606000020A34E9A56E - 22:11:37.496739 antennaID=1
    FirstRead 9. E20000179804003619504B1F - 22:11:37.500739 antennaID=1
    FirstRead 10. E28011606000020A34E9F31D - 22:11:37.571739 antennaID=1
    FirstRead 11. E28011606000020A34E9A5BE - 22:11:37.895739 antennaID=1
    Received 12.  tag=E20000179804002019404D1F Skipped (<120 secs ago).  22:11:38.166739
    Received 13.  tag=E20000179804003619504B1F Skipped (<120 secs ago).  22:11:38.170739
    Received 14.  tag=E28011606000020A34E971ED Skipped (<120 secs ago).  22:11:38.174739
    Received 15.  tag=E28011606000020A34E9834E Skipped (<120 secs ago).  22:11:38.178739
    Received 16.  tag=E28011606000020A34E9836E Skipped (<120 secs ago).  22:11:38.181739
    Received 17.  tag=E28011606000020A34E9F30D Skipped (<120 secs ago).  22:11:38.186739
    Received 18.  tag=E28011606000020A34E9831E Skipped (<120 secs ago).  22:11:38.190739
    Received 19.  tag=E28011606000020A34E9A56E Skipped (<120 secs ago).  22:11:38.196739
    Received 20.  tag=E28011606000020A34E9F38E Skipped (<120 secs ago).  22:11:38.200739
    Received 21.  tag=E28011606000020A34E9F31D Skipped (<120 secs ago).  22:11:38.331739
    Received 22.  tag=E28011606000020A34E9A5BE Skipped (<120 secs ago).  22:11:38.400739

Log: CrossMgr
    Trying to connect to CrossMgr as "R-X220-19656-8104"...
    CrossMgr Connection Failed.  Trying as "R-X220-19656-8104" in 2 sec...

Log: Application

********************************************

2019-07-19_08:40:34: CrossMgrImpinj 3.0.1 Started.

********************************************

2019-07-19_15:13:45: CrossMgrImpinj 3.0.1 Started.

********************************************

2019-07-19_15:33:55: CrossMgrImpinj 3.0.1 Started.

Exception in thread ImpinjProcess:

Traceback (most recent call last):

  File "threading.py", line 917, in _bootstrap_inner

  File "threading.py", line 865, in run

  File "CrossMgr\CrossMgrImpinj\Impinj.py", line 597, in ImpinjServer

  File "CrossMgr\CrossMgrImpinj\Impinj.py", line 481, in runServer

  File "CrossMgr\CrossMgrImpinj\Impinj.py", line 391, in handleTagGroup

  File "CrossMgr\CrossMgrImpinj\TagGroup.py", line 169, in getReadsStrays

NameError: name 'items' is not defined

********************************************

2019-07-19_15:36:01: CrossMgrImpinj 3.0.1 Started.

Exception in thread ImpinjProcess:

Traceback (most recent call last):

  File "threading.py", line 917, in _bootstrap_inner

  File "threading.py", line 865, in run

  File "CrossMgr\CrossMgrImpinj\Impinj.py", line 597, in ImpinjServer

  File "CrossMgr\CrossMgrImpinj\Impinj.py", line 481, in runServer

  File "CrossMgr\CrossMgrImpinj\Impinj.py", line 391, in handleTagGroup

  File "CrossMgr\CrossMgrImpinj\TagGroup.py", line 169, in getReadsStrays

NameError: name 'items' is not defined

********************************************

2019-07-19_15:39:14: CrossMgrImpinj 2.21.19 Started.

********************************************

2019-07-19_15:52:25: CrossMgrImpinj 2.21.19 Started.

Exception in thread ImpinjProcess:

Traceback (most recent call last):

  File "threading.py", line 801, in __bootstrap_inner

  File "threading.py", line 754, in run

  File "CrossMgr\CrossMgrImpinj\Impinj.py", line 596, in ImpinjServer

  File "CrossMgr\CrossMgrImpinj\Impinj.py", line 491, in runServer

  File "CrossMgr\CrossMgrImpinj\pyllrp\pyllrp.py", line 714, in UnpackMessageFromSocket

error: [Errno 10054] An existing connection was forcibly closed by the remote host

Exception in thread Thread-939 (most likely raised during interpreter shutdown):Exception in thread Thread-937 (most likely raised during interpreter shutdown):

Traceback (most recent call last):Exception in thread Thread-938 (most likely raised during interpreter shutdown):Traceback (most recent call last):

  File "threading.py", line 801, in __bootstrap_innerTraceback (most recent call last):  File "threading.py", line 801, in __bootstrap_inner

  File "threading.py", line 801, in __bootstrap_inner  File "threading.py", line 1071, in run  File "threading.py", line 1071, in run

  File "threading.py", line 1071, in run  File "threading.py", line 614, in wait  File "threading.py", line 614, in wait

  File "threading.py", line 614, in wait  File "threading.py", line 355, in wait

  File "threading.py", line 355, in wait  File "threading.py", line 355, in wait<type 'exceptions.TypeError'>: 'NoneType' object is not callable

<type 'exceptions.TypeError'>: 'NoneType' object is not callable<type 'exceptions.TypeError'>: 'NoneType' object is not callable

********************************************

2019-07-19_16:00:16: CrossMgrImpinj 2.21.19 Started.

********************************************

2019-07-19_16:50:49: CrossMgrImpinj 2.21.19 Started.

********************************************

2019-07-22_20:42:47: CrossMgrImpinj 2.21.19 Started.

********************************************

2019-07-22_20:50:15: CrossMgrImpinj 2.21.19 Started.

********************************************

2019-07-22_20:51:00: CrossMgrImpinj 3.0.0 Started.

********************************************

2019-07-22_21:04:39: CrossMgrImpinj 3.0.1 Started.

********************************************

2019-07-22_21:05:21: CrossMgrImpinj 3.0.1 Started.

********************************************

2019-07-22_21:06:34: CrossMgrImpinj 3.0.1 Started.

********************************************

2019-07-22_21:19:44: CrossMgrImpinj 3.0.1 Started.

********************************************

2019-07-22_22:03:09: CrossMgrImpinj 3.0.1 Started.

********************************************

2019-07-22_22:06:20: CrossMgrImpinj 3.0.1 Started.

********************************************

2019-07-22_22:10:24: CrossMgrImpinj 3.0.0 Started.

********************************************

2019-07-22_22:11:20: CrossMgrImpinj 3.0.0 Started.

********************************************

2019-07-22_22:11:25: CrossMgrImpinj 3.0.0 Started.

********************************************

2019-07-22_22:11:36: CrossMgrImpinj 3.0.0 Started.
esitarski commented 5 years ago

Now fixed in CrossMgrImpinj 3.0.3.

On Mon, Jul 22, 2019 at 3:16 PM rkantos notifications@github.com wrote:

OK. In CrossMgrImpinj, there is a clipboard icon on the screen. Pressing this will copy the log to the clipboard. Please copy the log to the clipboard, then paste it into an entry. This should show where the problem is. … <#m7033016671934381251> On Mon, Jul 22, 2019 at 2:27 PM rkantos @.***> wrote: In addition to Motorola FX9500 no longer reading tags with CrossMgrImpinj 3.0.1 and 3.0.2, CrossMgrImpinj no longer shows that the connection to the reader is disconnected when unplugging the cable for example. No reconnection attemps seem to be made at all, the program seems to halt completely after initializing the reader and showing green on the left (reader) status page. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#29 https://github.com/esitarski/CrossMgr/issues/29?email_source=notifications&email_token=AABGXKLBHHBUBQV4ZWHKHBDQAX3X7A5CNFSM4IF3F34KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2QXZBY#issuecomment-513899655>, or mute the thread https://github.com/notifications/unsubscribe-auth/AABGXKK567DVZJVR4YFUVDTQAX3X7ANCNFSM4IF3F34A . -- Edward Sitarski

Ah, yes, I forgot about that. On Linux CrossMgrImpinj doesn't seem to print logs to console either when running the MainWin.py.

CrossMgrImpinj 3.0.1

Configuration: CrossMgrImpinj

RunningTime:   00:00:27

Time:          22:06:47

BackupFile:    C:\Users\user\ImpinjData\Impinj-2019-07-22-22-06-41.txt

Configuration: Impinj:

Use Host Name: False

HostName:      SpeedwayR-00-00-00.local

ImpinjHost:    192.168.1.232

ImpinjPort:    5084

ReportMethod:  First Read Time

AntennaChoice: Max Signal dB

RemoveOutliers:120

ConnectionTimeoutSeconds: 3

KeepaliveSeconds:         2

RepeatSeconds:            120

Configuration: CrossMgr

CrossMgrHost:  127.0.0.1

CrossMgrPort:  53135

Log: Impinj

*****************************************

Reader Server Started: (192.168.1.232:5084)

Trying to Connect to Reader: (192.168.1.232:5084)...

ConnectionTimeout=3.00 seconds

Connected to: (192.168.1.232:5084)

Waiting for READER_EVENT_NOTIFICATION...

Send Command Error=timed out

Reader Initialization Failed.

Disconnecting Reader.

Attempting Reconnect in 2 seconds...

Trying to Connect to Reader: (192.168.1.232:5084)...

ConnectionTimeout=3.00 seconds

Connected to: (192.168.1.232:5084)

Waiting for READER_EVENT_NOTIFICATION...

Received Response:

READER_EVENT_NOTIFICATION(

  MessageID=2,

  Parameters=[

    ReaderEventNotificationData(

      Parameters=[

        UTCTimestamp( Microseconds=1563822408446103 ),

        ConnectionAttemptEvent( Status=ConnectionAttemptStatusType.Success ),

      ]

    ),

  ]

)

Reader time is 10798.23466 seconds different from computer time

-----------------------------------------------------

Sending Message:

SET_READER_CONFIG(

  MessageID=2,

  ResetToFactoryDefault=True,

)

Received Response:

SET_READER_CONFIG_RESPONSE(

  MessageID=2,

  Parameters=[

    LLRPStatus(

      StatusCode=StatusCode.M_Success,

      ErrorDescription='',

    ),

  ]

)

-----------------------------------------------------

Sending Message:

GET_READER_CONFIG(

  MessageID=3,

  AntennaID=0,

  RequestedData=GetReaderConfigRequestedData.AntennaProperties,

  GPIPortNum=0,

  GPOPortNum=0,

)

Received Response:

GET_READER_CONFIG_RESPONSE(

  MessageID=3,

  Parameters=[

    LLRPStatus(

      StatusCode=StatusCode.M_Success,

      ErrorDescription='',

    ),

    AntennaProperties(

      AntennaConnected=True,

      AntennaID=1,

      AntennaGain=600,

    ),

    AntennaProperties(

      AntennaConnected=False,

      AntennaID=2,

      AntennaGain=600,

    ),

    AntennaProperties(

      AntennaConnected=False,

      AntennaID=3,

      AntennaGain=600,

    ),

    AntennaProperties(

      AntennaConnected=False,

      AntennaID=4,

      AntennaGain=600,

    ),

    AntennaProperties(

      AntennaConnected=False,

      AntennaID=5,

      AntennaGain=600,

    ),

    AntennaProperties(

      AntennaConnected=False,

      AntennaID=6,

      AntennaGain=600,

    ),

    AntennaProperties(

      AntennaConnected=False,

      AntennaID=7,

      AntennaGain=600,

    ),

    AntennaProperties(

      AntennaConnected=False,

      AntennaID=8,

      AntennaGain=600,

    ),

  ]

)

-----------------------------------------------------

Sending Message:

SET_READER_CONFIG(

  MessageID=4,

  ResetToFactoryDefault=False,

  Parameters=[

    AntennaConfiguration(

      AntennaID=0,

      Parameters=[

        C1G2InventoryCommand(

          TagInventoryStateAware=False,

          Parameters=[

            C1G2SingulationControl(

              Session=2,

              TagPopulation=4,

              TagTransitTime=3000,

            ),

          ]

        ),

      ]

    ),

    KeepaliveSpec(

      KeepaliveTriggerType=KeepaliveTriggerType.Periodic,

      PeriodicTriggerValue=2000,

    ),

  ]

)

Received Response:

SET_READER_CONFIG_RESPONSE(

  MessageID=4,

  Parameters=[

    LLRPStatus(

      StatusCode=StatusCode.M_Success,

      ErrorDescription='',

    ),

  ]

)

-----------------------------------------------------

Sending Message:

DISABLE_ROSPEC(

  MessageID=5,

  ROSpecID=0,

)

Received Response:

DISABLE_ROSPEC_RESPONSE(

  MessageID=5,

  Parameters=[

    LLRPStatus(

      StatusCode=StatusCode.M_Success,

      ErrorDescription='',

    ),

  ]

)

-----------------------------------------------------

Sending Message:

DELETE_ROSPEC(

  MessageID=6,

  ROSpecID=123,

)

Received Response:

DELETE_ROSPEC_RESPONSE(

  MessageID=6,

  Parameters=[

    LLRPStatus(

      StatusCode=StatusCode.M_FieldError,

      ErrorDescription='DELETE_ROSPEC: RO Spec ID (123) does not currently exists on the reader',

    ),

  ]

)

-----------------------------------------------------

Sending Message:

GET_READER_CAPABILITIES(

  MessageID=7,

  RequestedData=GetReaderCapabilitiesRequestedData.All,

)

Get response fails: (1023, 161, 1)

GET_READER_CAPABILITIES Exception: cannot unpack non-iterable bool object:

Traceback (most recent call last):

  File "CrossMgr\CrossMgrImpinj\Impinj.py", line 316, in sendCommands

TypeError: cannot unpack non-iterable bool object

-----------------------------------------------------

Sending Message:

ADD_ROSPEC(

  MessageID=8,

  Parameters=[

    ROSpec(

      ROSpecID=123,

      Priority=0,

      CurrentState=ROSpecState.Disabled,

      Parameters=[

        ROBoundarySpec(

          Parameters=[

            ROSpecStartTrigger( ROSpecStartTriggerType=ROSpecStartTriggerType.Immediate ),

            ROSpecStopTrigger(

              ROSpecStopTriggerType=ROSpecStopTriggerType.Null,

              DurationTriggerValue=0,

            ),

          ]

        ),

        AISpec(

          AntennaIDs=[1],

          Parameters=[

            AISpecStopTrigger(

              AISpecStopTriggerType=AISpecStopTriggerType.Tag_Observation,

              DurationTrigger=0,

              Parameters=[

                TagObservationTrigger(

                  TriggerType=TagObservationTriggerType.Upon_Seeing_N_Tags_Or_Timeout,

                  NumberOfTags=500,

                  NumberOfAttempts=1,

                  T=0,

                  Timeout=500,

                ),

              ]

            ),

            InventoryParameterSpec(

              InventoryParameterSpecID=1234,

              ProtocolID=AirProtocols.EPCGlobalClass1Gen2,

            ),

          ]

        ),

        ROReportSpec(

          ROReportTrigger=ROReportTriggerType.Upon_N_Tags_Or_End_Of_ROSpec,

          N=0,

          Parameters=[

            TagReportContentSelector(

              EnableROSpecID=False,

              EnableSpecIndex=False,

              EnableInventoryParameterSpecID=False,

              EnableAntennaID=True,

              EnableChannelIndex=False,

              EnablePeakRSSI=False,

              EnableFirstSeenTimestamp=True,

              EnableLastSeenTimestamp=False,

              EnableTagSeenCount=False,

              EnableAccessSpecID=False,

            ),

          ]

        ),

      ]

    ),

  ]

)

Received Response:

ADD_ROSPEC_RESPONSE(

  MessageID=8,

  Parameters=[

    LLRPStatus(

      StatusCode=StatusCode.M_Success,

      ErrorDescription='',

    ),

  ]

)

-----------------------------------------------------

Sending Message:

ENABLE_ROSPEC(

  MessageID=9,

  ROSpecID=123,

)

Received Response:

ENABLE_ROSPEC_RESPONSE(

  MessageID=9,

  Parameters=[

    LLRPStatus(

      StatusCode=StatusCode.M_Success,

      ErrorDescription='',

    ),

  ]

)

Log: CrossMgr

Trying to connect to CrossMgr as "R-X220-19656-9488"...

CrossMgr Connection Failed.  Trying as "R-X220-19656-9488" in 2 sec...

CrossMgr Connection Failed.  Trying as "R-X220-19656-9488" in 2 sec...

Log: Application


2019-07-19_08:40:34: CrossMgrImpinj 3.0.1 Started.


2019-07-19_15:13:45: CrossMgrImpinj 3.0.1 Started.


2019-07-19_15:33:55: CrossMgrImpinj 3.0.1 Started.

Exception in thread ImpinjProcess:

Traceback (most recent call last):

File "threading.py", line 917, in _bootstrap_inner

File "threading.py", line 865, in run

File "CrossMgr\CrossMgrImpinj\Impinj.py", line 597, in ImpinjServer

File "CrossMgr\CrossMgrImpinj\Impinj.py", line 481, in runServer

File "CrossMgr\CrossMgrImpinj\Impinj.py", line 391, in handleTagGroup

File "CrossMgr\CrossMgrImpinj\TagGroup.py", line 169, in getReadsStrays

NameError: name 'items' is not defined


2019-07-19_15:36:01: CrossMgrImpinj 3.0.1 Started.

Exception in thread ImpinjProcess:

Traceback (most recent call last):

File "threading.py", line 917, in _bootstrap_inner

File "threading.py", line 865, in run

File "CrossMgr\CrossMgrImpinj\Impinj.py", line 597, in ImpinjServer

File "CrossMgr\CrossMgrImpinj\Impinj.py", line 481, in runServer

File "CrossMgr\CrossMgrImpinj\Impinj.py", line 391, in handleTagGroup

File "CrossMgr\CrossMgrImpinj\TagGroup.py", line 169, in getReadsStrays

NameError: name 'items' is not defined


2019-07-19_15:39:14: CrossMgrImpinj 2.21.19 Started.


2019-07-19_15:52:25: CrossMgrImpinj 2.21.19 Started.

Exception in thread ImpinjProcess:

Traceback (most recent call last):

File "threading.py", line 801, in __bootstrap_inner

File "threading.py", line 754, in run

File "CrossMgr\CrossMgrImpinj\Impinj.py", line 596, in ImpinjServer

File "CrossMgr\CrossMgrImpinj\Impinj.py", line 491, in runServer

File "CrossMgr\CrossMgrImpinj\pyllrp\pyllrp.py", line 714, in UnpackMessageFromSocket

error: [Errno 10054] An existing connection was forcibly closed by the remote host

Exception in thread Thread-939 (most likely raised during interpreter shutdown):Exception in thread Thread-937 (most likely raised during interpreter shutdown):

Traceback (most recent call last):Exception in thread Thread-938 (most likely raised during interpreter shutdown):Traceback (most recent call last):

File "threading.py", line 801, in __bootstrap_innerTraceback (most recent call last): File "threading.py", line 801, in __bootstrap_inner

File "threading.py", line 801, in __bootstrap_inner File "threading.py", line 1071, in run File "threading.py", line 1071, in run

File "threading.py", line 1071, in run File "threading.py", line 614, in wait File "threading.py", line 614, in wait

File "threading.py", line 614, in wait File "threading.py", line 355, in wait

File "threading.py", line 355, in wait File "threading.py", line 355, in wait<type 'exceptions.TypeError'>: 'NoneType' object is not callable

<type 'exceptions.TypeError'>: 'NoneType' object is not callable<type 'exceptions.TypeError'>: 'NoneType' object is not callable


2019-07-19_16:00:16: CrossMgrImpinj 2.21.19 Started.


2019-07-19_16:50:49: CrossMgrImpinj 2.21.19 Started.


2019-07-22_20:42:47: CrossMgrImpinj 2.21.19 Started.


2019-07-22_20:50:15: CrossMgrImpinj 2.21.19 Started.


2019-07-22_20:51:00: CrossMgrImpinj 3.0.0 Started.


2019-07-22_21:04:39: CrossMgrImpinj 3.0.1 Started.


2019-07-22_21:05:21: CrossMgrImpinj 3.0.1 Started.


2019-07-22_21:06:34: CrossMgrImpinj 3.0.1 Started.


2019-07-22_21:19:44: CrossMgrImpinj 3.0.1 Started.


2019-07-22_22:03:09: CrossMgrImpinj 3.0.1 Started.


2019-07-22_22:06:20: CrossMgrImpinj 3.0.1 Started.

And from 3.0.0:

CrossMgrImpinj 3.0.0

Configuration: CrossMgrImpinj

RunningTime:   00:00:02

Time:          22:11:38

BackupFile:    C:\Users\user\ImpinjData\Impinj-2019-07-22-22-11-36.txt

Configuration: Impinj:

Use Host Name: False

HostName:      SpeedwayR-00-00-00.local

ImpinjHost:    192.168.1.232

ImpinjPort:    5084

ReportMethod:  First Read Time

AntennaChoice: Max Signal dB

RemoveOutliers:120

ConnectionTimeoutSeconds: 3

KeepaliveSeconds:         2

RepeatSeconds:            120

Configuration: CrossMgr

CrossMgrHost:  127.0.0.1

CrossMgrPort:  53135

Log: Impinj

*****************************************

Reader Server Started: (192.168.1.232:5084)

Trying to Connect to Reader: (192.168.1.232:5084)...

ConnectionTimeout=3.00 seconds

Connected to: (192.168.1.232:5084)

Waiting for READER_EVENT_NOTIFICATION...

Received Response:

READER_EVENT_NOTIFICATION(

  MessageID=142,

  Parameters=[

    ReaderEventNotificationData(

      Parameters=[

        UTCTimestamp( Microseconds=1563822698876123 ),

        ConnectionAttemptEvent( Status=ConnectionAttemptStatusType.Success ),

      ]

    ),

  ]

)

Reader time is 10798.317634 seconds different from computer time

-----------------------------------------------------

Sending Message:

SET_READER_CONFIG(

  MessageID=1,

  ResetToFactoryDefault=True,

)

Received Response:

SET_READER_CONFIG_RESPONSE(

  MessageID=1,

  Parameters=[

    LLRPStatus(

      StatusCode=StatusCode.M_Success,

      ErrorDescription='',

    ),

  ]

)

-----------------------------------------------------

Sending Message:

GET_READER_CONFIG(

  MessageID=2,

  AntennaID=0,

  RequestedData=GetReaderConfigRequestedData.AntennaProperties,

  GPIPortNum=0,

  GPOPortNum=0,

)

Received Response:

GET_READER_CONFIG_RESPONSE(

  MessageID=2,

  Parameters=[

    LLRPStatus(

      StatusCode=StatusCode.M_Success,

      ErrorDescription='',

    ),

    AntennaProperties(

      AntennaConnected=True,

      AntennaID=1,

      AntennaGain=600,

    ),

    AntennaProperties(

      AntennaConnected=False,

      AntennaID=2,

      AntennaGain=600,

    ),

    AntennaProperties(

      AntennaConnected=False,

      AntennaID=3,

      AntennaGain=600,

    ),

    AntennaProperties(

      AntennaConnected=False,

      AntennaID=4,

      AntennaGain=600,

    ),

    AntennaProperties(

      AntennaConnected=False,

      AntennaID=5,

      AntennaGain=600,

    ),

    AntennaProperties(

      AntennaConnected=False,

      AntennaID=6,

      AntennaGain=600,

    ),

    AntennaProperties(

      AntennaConnected=False,

      AntennaID=7,

      AntennaGain=600,

    ),

    AntennaProperties(

      AntennaConnected=False,

      AntennaID=8,

      AntennaGain=600,

    ),

  ]

)

-----------------------------------------------------

Sending Message:

SET_READER_CONFIG(

  MessageID=3,

  ResetToFactoryDefault=False,

  Parameters=[

    AntennaConfiguration(

      AntennaID=0,

      Parameters=[

        C1G2InventoryCommand(

          TagInventoryStateAware=False,

          Parameters=[

            C1G2SingulationControl(

              Session=2,

              TagPopulation=4,

              TagTransitTime=3000,

            ),

          ]

        ),

      ]

    ),

    KeepaliveSpec(

      KeepaliveTriggerType=KeepaliveTriggerType.Periodic,

      PeriodicTriggerValue=2000,

    ),

  ]

)

Received Response:

SET_READER_CONFIG_RESPONSE(

  MessageID=3,

  Parameters=[

    LLRPStatus(

      StatusCode=StatusCode.M_Success,

      ErrorDescription='',

    ),

  ]

)

-----------------------------------------------------

Sending Message:

DISABLE_ROSPEC(

  MessageID=4,

  ROSpecID=0,

)

Received Response:

DISABLE_ROSPEC_RESPONSE(

  MessageID=4,

  Parameters=[

    LLRPStatus(

      StatusCode=StatusCode.M_Success,

      ErrorDescription='',

    ),

  ]

)

-----------------------------------------------------

Sending Message:

DELETE_ROSPEC(

  MessageID=5,

  ROSpecID=123,

)

Received Response:

DELETE_ROSPEC_RESPONSE(

  MessageID=5,

  Parameters=[

    LLRPStatus(

      StatusCode=StatusCode.M_Success,

      ErrorDescription='',

    ),

  ]

)

-----------------------------------------------------

Sending Message:

GET_READER_CAPABILITIES(

  MessageID=6,

  RequestedData=GetReaderCapabilitiesRequestedData.All,

)

Get response fails: (1023, 161, 1)

GET_READER_CAPABILITIES Exception: cannot unpack non-iterable bool object:

Traceback (most recent call last):

  File "CrossMgr\CrossMgrImpinj\Impinj.py", line 316, in sendCommands

TypeError: cannot unpack non-iterable bool object

-----------------------------------------------------

Sending Message:

ADD_ROSPEC(

  MessageID=7,

  Parameters=[

    ROSpec(

      ROSpecID=123,

      Priority=0,

      CurrentState=ROSpecState.Disabled,

      Parameters=[

        ROBoundarySpec(

          Parameters=[

            ROSpecStartTrigger( ROSpecStartTriggerType=ROSpecStartTriggerType.Immediate ),

            ROSpecStopTrigger(

              ROSpecStopTriggerType=ROSpecStopTriggerType.Null,

              DurationTriggerValue=0,

            ),

          ]

        ),

        AISpec(

          AntennaIDs=[1],

          Parameters=[

            AISpecStopTrigger(

              AISpecStopTriggerType=AISpecStopTriggerType.Tag_Observation,

              DurationTrigger=0,

              Parameters=[

                TagObservationTrigger(

                  TriggerType=TagObservationTriggerType.Upon_Seeing_N_Tags_Or_Timeout,

                  NumberOfTags=500,

                  NumberOfAttempts=1,

                  T=0,

                  Timeout=500,

                ),

              ]

            ),

            InventoryParameterSpec(

              InventoryParameterSpecID=1234,

              ProtocolID=AirProtocols.EPCGlobalClass1Gen2,

            ),

          ]

        ),

        ROReportSpec(

          ROReportTrigger=ROReportTriggerType.Upon_N_Tags_Or_End_Of_ROSpec,

          N=0,

          Parameters=[

            TagReportContentSelector(

              EnableROSpecID=False,

              EnableSpecIndex=False,

              EnableInventoryParameterSpecID=False,

              EnableAntennaID=True,

              EnableChannelIndex=False,

              EnablePeakRSSI=False,

              EnableFirstSeenTimestamp=True,

              EnableLastSeenTimestamp=False,

              EnableTagSeenCount=False,

              EnableAccessSpecID=False,

            ),

          ]

        ),

      ]

    ),

  ]

)

Received Response:

ADD_ROSPEC_RESPONSE(

  MessageID=7,

  Parameters=[

    LLRPStatus(

      StatusCode=StatusCode.M_Success,

      ErrorDescription='',

    ),

  ]

)

-----------------------------------------------------

Sending Message:

ENABLE_ROSPEC(

  MessageID=8,

  ROSpecID=123,

)

Received Response:

ENABLE_ROSPEC_RESPONSE(

  MessageID=8,

  Parameters=[

    LLRPStatus(

      StatusCode=StatusCode.M_Success,

      ErrorDescription='',

    ),

  ]

)

FirstRead 1. E28011606000020A34E9836E - 22:11:37.466739 antennaID=1

FirstRead 2. E28011606000020A34E9F30D - 22:11:37.470739 antennaID=1

FirstRead 3. E28011606000020A34E9F38E - 22:11:37.474739 antennaID=1

FirstRead 4. E28011606000020A34E9831E - 22:11:37.477739 antennaID=1

FirstRead 5. E20000179804002019404D1F - 22:11:37.484739 antennaID=1

FirstRead 6. E28011606000020A34E971ED - 22:11:37.488739 antennaID=1

FirstRead 7. E28011606000020A34E9834E - 22:11:37.492739 antennaID=1

FirstRead 8. E28011606000020A34E9A56E - 22:11:37.496739 antennaID=1

FirstRead 9. E20000179804003619504B1F - 22:11:37.500739 antennaID=1

FirstRead 10. E28011606000020A34E9F31D - 22:11:37.571739 antennaID=1

FirstRead 11. E28011606000020A34E9A5BE - 22:11:37.895739 antennaID=1

Received 12.  tag=E20000179804002019404D1F Skipped (<120 secs ago).  22:11:38.166739

Received 13.  tag=E20000179804003619504B1F Skipped (<120 secs ago).  22:11:38.170739

Received 14.  tag=E28011606000020A34E971ED Skipped (<120 secs ago).  22:11:38.174739

Received 15.  tag=E28011606000020A34E9834E Skipped (<120 secs ago).  22:11:38.178739

Received 16.  tag=E28011606000020A34E9836E Skipped (<120 secs ago).  22:11:38.181739

Received 17.  tag=E28011606000020A34E9F30D Skipped (<120 secs ago).  22:11:38.186739

Received 18.  tag=E28011606000020A34E9831E Skipped (<120 secs ago).  22:11:38.190739

Received 19.  tag=E28011606000020A34E9A56E Skipped (<120 secs ago).  22:11:38.196739

Received 20.  tag=E28011606000020A34E9F38E Skipped (<120 secs ago).  22:11:38.200739

Received 21.  tag=E28011606000020A34E9F31D Skipped (<120 secs ago).  22:11:38.331739

Received 22.  tag=E28011606000020A34E9A5BE Skipped (<120 secs ago).  22:11:38.400739

Log: CrossMgr

Trying to connect to CrossMgr as "R-X220-19656-8104"...

CrossMgr Connection Failed.  Trying as "R-X220-19656-8104" in 2 sec...

Log: Application


2019-07-19_08:40:34: CrossMgrImpinj 3.0.1 Started.


2019-07-19_15:13:45: CrossMgrImpinj 3.0.1 Started.


2019-07-19_15:33:55: CrossMgrImpinj 3.0.1 Started.

Exception in thread ImpinjProcess:

Traceback (most recent call last):

File "threading.py", line 917, in _bootstrap_inner

File "threading.py", line 865, in run

File "CrossMgr\CrossMgrImpinj\Impinj.py", line 597, in ImpinjServer

File "CrossMgr\CrossMgrImpinj\Impinj.py", line 481, in runServer

File "CrossMgr\CrossMgrImpinj\Impinj.py", line 391, in handleTagGroup

File "CrossMgr\CrossMgrImpinj\TagGroup.py", line 169, in getReadsStrays

NameError: name 'items' is not defined


2019-07-19_15:36:01: CrossMgrImpinj 3.0.1 Started.

Exception in thread ImpinjProcess:

Traceback (most recent call last):

File "threading.py", line 917, in _bootstrap_inner

File "threading.py", line 865, in run

File "CrossMgr\CrossMgrImpinj\Impinj.py", line 597, in ImpinjServer

File "CrossMgr\CrossMgrImpinj\Impinj.py", line 481, in runServer

File "CrossMgr\CrossMgrImpinj\Impinj.py", line 391, in handleTagGroup

File "CrossMgr\CrossMgrImpinj\TagGroup.py", line 169, in getReadsStrays

NameError: name 'items' is not defined


2019-07-19_15:39:14: CrossMgrImpinj 2.21.19 Started.


2019-07-19_15:52:25: CrossMgrImpinj 2.21.19 Started.

Exception in thread ImpinjProcess:

Traceback (most recent call last):

File "threading.py", line 801, in __bootstrap_inner

File "threading.py", line 754, in run

File "CrossMgr\CrossMgrImpinj\Impinj.py", line 596, in ImpinjServer

File "CrossMgr\CrossMgrImpinj\Impinj.py", line 491, in runServer

File "CrossMgr\CrossMgrImpinj\pyllrp\pyllrp.py", line 714, in UnpackMessageFromSocket

error: [Errno 10054] An existing connection was forcibly closed by the remote host

Exception in thread Thread-939 (most likely raised during interpreter shutdown):Exception in thread Thread-937 (most likely raised during interpreter shutdown):

Traceback (most recent call last):Exception in thread Thread-938 (most likely raised during interpreter shutdown):Traceback (most recent call last):

File "threading.py", line 801, in __bootstrap_innerTraceback (most recent call last): File "threading.py", line 801, in __bootstrap_inner

File "threading.py", line 801, in __bootstrap_inner File "threading.py", line 1071, in run File "threading.py", line 1071, in run

File "threading.py", line 1071, in run File "threading.py", line 614, in wait File "threading.py", line 614, in wait

File "threading.py", line 614, in wait File "threading.py", line 355, in wait

File "threading.py", line 355, in wait File "threading.py", line 355, in wait<type 'exceptions.TypeError'>: 'NoneType' object is not callable

<type 'exceptions.TypeError'>: 'NoneType' object is not callable<type 'exceptions.TypeError'>: 'NoneType' object is not callable


2019-07-19_16:00:16: CrossMgrImpinj 2.21.19 Started.


2019-07-19_16:50:49: CrossMgrImpinj 2.21.19 Started.


2019-07-22_20:42:47: CrossMgrImpinj 2.21.19 Started.


2019-07-22_20:50:15: CrossMgrImpinj 2.21.19 Started.


2019-07-22_20:51:00: CrossMgrImpinj 3.0.0 Started.


2019-07-22_21:04:39: CrossMgrImpinj 3.0.1 Started.


2019-07-22_21:05:21: CrossMgrImpinj 3.0.1 Started.


2019-07-22_21:06:34: CrossMgrImpinj 3.0.1 Started.


2019-07-22_21:19:44: CrossMgrImpinj 3.0.1 Started.


2019-07-22_22:03:09: CrossMgrImpinj 3.0.1 Started.


2019-07-22_22:06:20: CrossMgrImpinj 3.0.1 Started.


2019-07-22_22:10:24: CrossMgrImpinj 3.0.0 Started.


2019-07-22_22:11:20: CrossMgrImpinj 3.0.0 Started.


2019-07-22_22:11:25: CrossMgrImpinj 3.0.0 Started.


2019-07-22_22:11:36: CrossMgrImpinj 3.0.0 Started.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/esitarski/CrossMgr/issues/29?email_source=notifications&email_token=AABGXKNAS3BAELSGY4D3G3TQAYBRDA5CNFSM4IF3F34KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2Q4C2A#issuecomment-513917288, or mute the thread https://github.com/notifications/unsubscribe-auth/AABGXKOUQ22S5GDQ6S2NUA3QAYBRDANCNFSM4IF3F34A .

--

Edward Sitarski

rkantos commented 5 years ago

Nice! Tested, and both issues (ImpinjData saving & Motorola reader working) fixed.