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

M100(...) and status report #375

Open
smhty opened this issue Aug 18, 2018 · 8 comments
Open

M100(...) and status report #375

smhty opened this issue Aug 18, 2018 · 8 comments

Comments

@smhty
Copy link

smhty commented Aug 18, 2018

Hi Everyone,

I have a problem with the current edge version:

Description
If I change outputs via M100 command, for example M100({out1: 1}), I don't see any update in the status report.
The interesting part is that if I send M100({do1mo:1}) then I see the update in sr.
I have already included both "out1" and "do1mo" in my status report, and if I manually call {sr:n}, I can see the "out1": 1 in the report. I also make sure that "out1" is 0 before sending the M100({out1: 1}) command

Sample log
send: M100({out5:1})
receive: {'r': {}, 'f': [1, 0, 15]}
receive: {'qr': 47, 'qi': 1, 'qo': 0}
receive: {'qr': 48, 'qi': 0, 'qo': 1}
receive: {'sr': {'stat': 3}}

send: M100({do1mo:1})
receive: {'r': {}, 'f': [1, 0, 16]}
receive: {'qr': 47, 'qi': 1, 'qo': 0}
receive: {'qr': 48, 'qi': 0, 'qo': 1}
receive: {'sr': {'stat': 3, 'do1mo': 1}}

I would like to check this with you, and see if you guys have any suggestion.

Thank you very much

@justinclift
Copy link
Member

Hmmm, I wonder if this is related to #367?

@smhty
Copy link
Author

smhty commented Aug 18, 2018

Hi Justin,
Good point.
I actually send the command in a line format (not json), and I don't see similar behavior in the 100.026 version.
I am using the 100.03, because it works well with issue #346

@justinclift
Copy link
Member

Ouch. Sounds like things are in a bit of a buggy state atm then. Ugh. 😦

@giseburt
Copy link
Member

giseburt commented Aug 19, 2018 via email

@smhty
Copy link
Author

smhty commented Aug 19, 2018

Thanks @giseburt for your comment.
I applied your comment, but still don't see any difference.
It makes sense to me: I compared both master and edge versions of the gpio.cpp and if I am right, io_get_output is similar in both versions, and in master io_get_output does not call any sr_request_status_report(SR_REQUEST_TIMED);
So, I don't think that's the source of the problem.
This is just a guess :)

@justinclift
Copy link
Member

justinclift commented Aug 19, 2018

Just make a PR with that change, here #376.

@smhty Would you be ok to test it? I don't have any CNC nor Due hardware handy atm. Oops. 🙄

@smhty
Copy link
Author

smhty commented Aug 19, 2018

@justinclift, I already did it. As you mentioned, it compiles fine but still doesn't update outputs.
I will do it again tomorrow, and let you know if I see any difference.
Thanks again for all your help, and suggestion.

@justinclift
Copy link
Member

Heh Heh Heh

My bad. I didn't see your comment in time mentioning that. I was creating the PR at the same time.

It sounds like that PR will need a bit more work then. 😉

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