-
Notifications
You must be signed in to change notification settings - Fork 46
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
HDLC frame could not be parsed when switching clients #95
Comments
Hmm. I am not really sure what is happening.
For UnNumberedAcknowledgmentFrame it gives HCS error So I am not sure what the meter is responding with. My normal problems when switching between clients is that some meters modems hangs on disconnect. It is usually not a problem to not call |
I'm thinking its probably on the side of my code than on the side of the meter because this will happen even if I wait for a few seconds between every operation, and if I just stop the code and run it again it connects to the management client instantly. Also I have tried keeping the same IO but then I get the same thing on the Public client. I could maybe rewrite the code to basically release the association and then redefine the management client with a different address(logical_address=16) and then associate again. |
Closing due to inactivity |
For my application I need to switch between a public and management client and something strange happens when I do.
Here is part of my code:
I am using
ser.write(b'\x7E\xA0\x0A\x00\x02\xFE\xFD\x41\x53\x3C\x94\x7E')
to release all the associations from the meter before the first connection because it can refuse a new association if the old one hasn't been released. I mentioned this in #74The problem im encountering is that I connect as a management client no problem, and I also after that connect as a public client and get my data and finish everything I need as a public client and then when I want to again return to a management client then I encounter a problem. I have tried using just the
management.connect() and management.associate()
and that basically did nothing.Here is the console output:
The text was updated successfully, but these errors were encountered: