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

Ensure Machine is Ready; Log Inc Messages Immediately #498

Merged
merged 2 commits into from
Dec 18, 2017

Conversation

krkeegan
Copy link
Collaborator

There was no check for the 'ok' command from the firmware before sending the first message. This is likely why PR #405 and commit 6c934aa which sent a blank line on startup helped, becuase only the first command could be sent without an ok. Removed the kludge of a blank command and it seems to work well.

This may also fix the issues reported in this post:
https://forums.maslowcnc.com/t/unable-to-execute-command-machine-settings-not-yet-received/1517

Also added a new child class of Queue which logs the messages to the logger on put rather than waiting for the process to get them out of the queue. The get method was resulting in non-sequential incoming and outgoing messages in the log because outgoing messages were logged immediately. This makes the log much more helpful.

I think on startup we may be sending commands sooner
in some cases than when the firmware is ready to
receive.
There was no check for the 'ok' command from the firmware
before sending the first message.  This is likely why PR MaslowCNC#405
and commit 6c934aa which sent
a blank line on startup helped, becuase only the first command
could be sent without an ok.  Removed the kludge of a blank
command and it seems to work well.

This may also fix the issues reported in this post:
https://forums.maslowcnc.com/t/unable-to-execute-command-machine-settings-not-yet-received/1517

Also added a new child class of Queue which logs the messages
to the logger on put rather than waiting for the process to get
them out of the queue. The get method was resulting in non-
sequential incoming and outgoing messages in the log because
outgoing messages were logged immediately.  This makes the log
much more helpful.
@blurfl
Copy link
Collaborator

blurfl commented Dec 16, 2017

Both are good solid contributions 💯👍🏻

@BarbourSmith BarbourSmith merged commit c5d874f into MaslowCNC:master Dec 18, 2017
@blurfl
Copy link
Collaborator

blurfl commented Dec 18, 2017

Does this require the update PR#347 to firmware as well?

@BarbourSmith
Copy link
Member

I'm reading through that one right now and I will merge it immediately

@krkeegan krkeegan deleted the MachineReadyCheck branch January 17, 2018 22:34
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

Successfully merging this pull request may close these issues.

3 participants