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

How to get response when I write a command using SerialConnection writeBytes() method #119

Closed
aviral1999099 opened this issue Aug 18, 2021 · 3 comments

Comments

@aviral1999099
Copy link

aviral1999099 commented Aug 18, 2021

Expected Behavior

I need a method to read response of the command I sent or in simple words, I want rx for a particular tx. Is their any particular method or we have to add listener, something like that.

Actual Behavior

Steps to Reproduce the Problem

Specifications

  • Version: j2mod 2.7.0
  • Platform: Linux ubuntu 18
  • Subsystem:
@aviral1999099
Copy link
Author

aviral1999099 commented Aug 18, 2021

I could not find a method to read a particular register, can you help me here. This is my ultimate task. I have already write the command but then how to get response for that particular command.

@steveohara
Copy link
Owner

I'm not sure what you're asking, seems kind of basic i.e. "how do I read a register using j2mod?"
If that is the case, then please refer to the myriad of examples in the tests or look at the documentation https://github.com/steveohara/j2mod/wiki/Using-j2mod-to-read-from-a-Slave#read-input-registers

@aviral1999099
Copy link
Author

aviral1999099 commented Aug 20, 2021 via email

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

2 participants