-
Couldn't load subscription status.
- Fork 5
Feature/jump channel #16
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
base: main
Are you sure you want to change the base?
Feature/jump channel #16
Conversation
|
@erikamundson thank you for submitting the PR. We do not have spare channels at the moment to test the This is not class based and is a bit basic, but can potentially be helpful to debug? Please let me know if this works or not and we can try to implement this in class-based version of pycti. Though, since your error is timeout related, I am not sure if the implementation itself is the culprit. Can you describe your setup a bit? The version of MITS Pro, whether you are running this from the same machine as the cycler computer, etc. |
|
@chintanp Thanks for the response. I'm having a hard time testing that code since it looks like it's part of a class that I don't have access to. I did try updating the message length and byte formats to match that function and the timeout still occurs.
We're running MITS Pro version MITS8 202103, which I believe does have the jump command based on the CTI instructions given to us by Arbin (using the C# DLL). I am testing this from the same computer that's running the MITS software. The code I'm using to test is: if __name__ == '__main__':
CHANNEL_INTERFACE_CONFIG = CYCLER_INTERFACE_CONFIG.copy()
CHANNEL_INTERFACE_CONFIG["channel"] = 25
channel_interface = ChannelInterface(CHANNEL_INTERFACE_CONFIG)
print(channel_interface.read_channel_status())
response = channel_interface.jump_channel(2)
print(response)The |
|
Will try jumping channel this week and get back to you. Just to make sure you are trying to "jump to the next step", correct? Maybe renaming the function will make the intent clearer. |
Yes, it is supposed to jump to the given step ID as defined by the schedule file. I named the function |
|
Hi @chintanp were you able to find some time to test out the jump functionality? |
@erikamundson a few people working on this are out sick, unfortunately I dont have a expected date on this. Could you tell a little more whey you need the jump functionality? We found this to be rather flaky in our first implementation and therefore didnt implement it this time around. |
No worries, there's no big rush for us and we can use the provided C# DLL temporarily if we need to. Our main use case is remote intervention in case of unsafe conditions. For example, if we detect a short during a charge we would want to jump that channel to a rest step. We'd also like to apply the same rules across different cyclers (eg. Neware, Maccor, Arbin), so writing our business logic into the schedule files is not ideal. |
Hi all, could use some help here.
Have been attempting to implement the JumpChannel command but am currently stuck getting socket timeout errors (am able to run the already existing commands with no issue).
Error message:
Any help or pointers would be appreciated. Thanks!