Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TagReadWrite Reset connection settings not working on Windows #137

Open
mr-exz opened this issue Jun 13, 2024 · 4 comments
Open

TagReadWrite Reset connection settings not working on Windows #137

mr-exz opened this issue Jun 13, 2024 · 4 comments

Comments

@mr-exz
Copy link

mr-exz commented Jun 13, 2024

Configured MIN possible values for Read/Write antenna. Tried found where settings saved to remove it - no success.
It would be nice to know where this settings stored to reset it, uninstall tool not helped.

------------------------------------------------------------
********************************************
2024-06-12_23:04:45: TagReadWrite 3.0.8-20240609124549 Started.
------------------------------------------------------------
Handing exception...
Traceback (most recent call last):
  File "MainWin.py", line 447, in doReset
  File "TagWriterCustom.py", line 72, in Connect
  File "pyllrp\TagInventory.py", line 86, in Connect
AssertionError: SET_READER_CONFIG Configuration fails:
SET_READER_CONFIG_RESPONSE(
  MessageID=5,
  Parameters=[
    LLRPStatus(
      StatusCode=StatusCode.M_FieldError,
      ErrorDescription='LLRP [420] : //RFTransmitter/ChannelIndex : out-of-range',
      Parameters=[
        ParameterError(
          ParameterType=222,
          ErrorCode=StatusCode.P_ParameterError,
          Parameters=[
            ParameterError(
              ParameterType=224,
              ErrorCode=StatusCode.P_FieldError,
              Parameters=[
                FieldError(
                  FieldNum=2,
                  ErrorCode=StatusCode.A_OutOfRange,
                ),
              ]
            ),
          ]
        ),
      ]
    ),
  ]
)
@kimble4
Copy link
Contributor

kimble4 commented Jun 13, 2024

I believe this is a bug in the pyllrp library. The library sends a ChannelIndex of 0 when specifying a transmit power, causing this error. If you modify the code to send a ChannelIndex of 1, the error doesn't happen and it appears to change the power level as intended.

The Errata for 9.2.4.1.2.1 1 and 9.2.4.1.2.2 in https://www.gs1.org/sites/default/files/docs/epc/llrp_1_0_1-standard-20070813.pdf suggest that ChannelIndex starting at 1 wasn't made clear in previous versions of the standard.

To the OP: The configuration is stored using wx.Config, which on Windows uses the registry to store the settings. I don't have a Windows machine to hand, but try searching the registry for "TagReadWrite" using regedit.

@mr-exz
Copy link
Author

mr-exz commented Jun 13, 2024

Will try today, and will write result here, ty.

@esitarski
Copy link
Owner

esitarski commented Jun 14, 2024 via email

@mr-exz
Copy link
Author

mr-exz commented Jun 14, 2024

Don't know, i just tried make read power smaller as much as possible, i'll check that questions Are you in a non-frequency-hopping regulatory region in short i don't know )

btw. Open RegEdit and in path Computer\HKEY_CURRENT_USER\SOFTWARE\C:\Users\User\AppData\Roaming \TagReadWrite\TagReadWrite.cfg i deleted ReceiveSensitivity_dB and TransmitPower_dBm after that was able to connect back to reader.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants