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

Win10/USB3 bug OverLapped Results #39

Open
ghost opened this issue Jun 27, 2017 · 32 comments
Open

Win10/USB3 bug OverLapped Results #39

ghost opened this issue Jun 27, 2017 · 32 comments

Comments

@ghost
Copy link

ghost commented Jun 27, 2017

  1. Connect to Smoothie
  2. Start a Job
  3. Click the Feedrate Overides
    3.1) Get pissed at 1% being too small an increment (make it +10% please - practically speaking i cant see why anyone would do 1% increments during a job. When shit starts chattering you want to adjust the feed FAST! you dont have time for hundreds of clicks. ) )
    3.2) Lose connection to your machine because of the overlapped write, break endmill, ruin material. Realise its last material you had on hand. fuck
@cprezzi
Copy link
Member

cprezzi commented Jun 27, 2017

You can CTRL-Click to get 10% stepps (help showed on button mouseover).
1% stepps are very usefull to find the sweet spot, especially with laser power.

@cprezzi
Copy link
Member

cprezzi commented Jun 27, 2017

What do you mean with "create overlapped results"?

@ghost
Copy link
Author

ghost commented Jun 27, 2017 via email

@ghost
Copy link
Author

ghost commented Jun 27, 2017

"What do you mean with "create overlapped results"?": Total Guesswork: I think it happens when node-serialport is trying to write two streams to the port (queue and realtime)

https://github.com/EmergingTechnologyAdvisors/node-serialport/blob/master/src/serialport_win.cpp#L277

@ghost
Copy link
Author

ghost commented Jun 27, 2017

PS: on my faster desktop it doesnt happen often. but on my cheap, slow, https://www.walmart.com/ip/Nextbook-Flexx-10.1-2-in-1-Tablet-32GB-Intel-Atom-Z3735F-Quad-Core-Processor-Windows-10/46664255 windows 10 netbook, it happens almost every time i try using override, but always after a couple clicks, 10+

@ghost
Copy link
Author

ghost commented Jun 27, 2017

Or it could be that win7 works better, and win10 doesnt... dont have another win10 to test against

@cprezzi
Copy link
Member

cprezzi commented Jun 27, 2017

I work with Win10 but never got this error related to overrides or other "real time" commands.
It just happend sometimes mid job with smoothieware, but not anymore with grbl-LPC. Probably has something to do with different USB protocolls.

@ghost
Copy link
Author

ghost commented Jul 4, 2017

Okay, still happens on the new Asus laptop, so ruling out slower CPU being the main culprit. Did however notice it happening easier during short segment moves. Mentally i hold off feedrate adjustments till its about to do longer sections.

Error code is 121

@ghost
Copy link

ghost commented Jul 10, 2017

We have just had a few reports from users that they are getting the overlapped results error as well.
twoxlje0exs6lnr4rm0baa

Users are running 'Windows 10 home version 1607'
Is there any further development on this?
Is there any information that would be useful fur us to provide to help resolve this?

@ghost
Copy link
Author

ghost commented Jul 11, 2017

@Domenic-D , also happened when using feed/power overrides?

@ghost
Copy link

ghost commented Jul 11, 2017

I checked with them after your feedback and no users reported making any changes to feed/power overrides.

@ghost
Copy link
Author

ghost commented Jul 11, 2017

Find out EXACTLY when / why they got the error. It shouldnt happen during normal operations (as during normal operation we run just the single file queue (out, ok, out, ok). Its during overrides that an extra line of commands are dumped onto the port...

@ghost
Copy link
Author

ghost commented Jul 11, 2017

(Maybe they dont know the up/down buttons on the DRO are called "feedrate override" and "S override" - so they report they didnt because they dont know what they clicked>?

@cprezzi
Copy link
Member

cprezzi commented Jul 11, 2017

According to the screenshot, it's not a firmware-cnc version. We need firmware-cnc!
And what are those two Ellapsed lines? Is this a new special smoothie firmware?

@ghost
Copy link

ghost commented Jul 11, 2017

@cprezzi This is the current version of Smoothiware we use. There is nothing special about it.
What classifies it as smoothiware-cnc on your system?

@cprezzi
Copy link
Member

cprezzi commented Jul 11, 2017

Smoothieware should send a second line CNC Build 3 axis after the first line, but probably this is only visible at the server console. I will download and test the latest smoothieware later today.

@cprezzi
Copy link
Member

cprezzi commented Jul 11, 2017

This is how it should look like when using the right firmware-cnc.bin:

grafik

@cprezzi
Copy link
Member

cprezzi commented Jul 11, 2017

Please advise they should use this firmware: https://github.com/Smoothieware/Smoothieware/blob/edge/FirmwareBin/firmware-cnc.bin

@cprezzi
Copy link
Member

cprezzi commented Jul 11, 2017

@Domenic-D Can you provide a file and the settings which caused the OverlapedResult error?

@cprezzi
Copy link
Member

cprezzi commented Jul 11, 2017

I was able to replicate the OverlappedResult error when using a cheap 1.8m USB cable, while it worked flawlessly with a good quality 1.8m cable or a standard blue 0.5m cable (without ferrites)!

All this was tested with the same front panel USB port on a desktop PC with Windows 10 and my C3D Remix.

Then I measured the USB voltage on the board side:

  • Standard blue 0.5m cable: 4.3V
  • Good 1.8m cable: 4.3V
  • Cheap 1.8m cable: 4.0V !

Changed to a rear USB port (onboard) I got 4.16V with the cheap 1.8m cable and the communication was stable.

It seems that not all USB ports provide the correct 5V and bad cables decrease that even more. If the voltage on the board dops below ~ 4.2V, the serial communication (and whatever else) seems to be unstable.

@ghost
Copy link
Author

ghost commented Jul 11, 2017 via email

@cprezzi
Copy link
Member

cprezzi commented Jul 11, 2017

Unfortunately most users with Smoothie or C3D boards do not have a 5V supply.

@ghost
Copy link

ghost commented Jul 11, 2017

@cprezzi @openhardwarecoza I am asking for more information. I'll pass it on as soon as I have it.

@ghost
Copy link
Author

ghost commented Jul 11, 2017 via email

@ghost
Copy link
Author

ghost commented Jul 11, 2017 via email

@cprezzi
Copy link
Member

cprezzi commented Jul 11, 2017

Ok. I was testing with the Cohesion Remix but without external power connected. If I connect the external 12V supply, the board voltage increases to 4.8V and it works also with the cheap 1.8m cable.

@ghost
Copy link

ghost commented Jul 12, 2017

We have been able to replicate 'our' specific problem on our machines in the lab.
It is caused by plugging the smoothieboard into a USB3 or SSUSB port.
After a short period of time, the firmware crashes and these errors are reported.
It is not related to Laserweb.

We will take this up with the Smoothie team.

@ghost
Copy link
Author

ghost commented Jul 12, 2017 via email

@cprezzi
Copy link
Member

cprezzi commented Jul 12, 2017

My PC also hasn't USB3, but one of the ports is combined USB/eSATA, and this port doesn't work with the Remix board.

@ghost
Copy link

ghost commented Jul 12, 2017

It is an unusual problem which we have been testing all day. We have tested the latest smoothiware firmware (both cnc and reprap). Both behave the same, with the firmware crash.
This all became apparent with the new laptop we purchased for our QA workstation. None of our other older computers can produce this problem.

@ghost
Copy link
Author

ghost commented Jul 12, 2017 via email

@ghost
Copy link
Author

ghost commented Jul 18, 2017

Okay. So running on the usb2 port for the last couple days have indeed proven to be more stable. But not eliminated the issue. Now, i still get getOverlapped-121 errors, but, they happen when i have feedrate override over 180% and, then it happens randomly mid job (not only on fro clicks). Looking more and more like usb driver. Might try grbl-lpc to see

@ghost ghost changed the title feed overrides create OverLapped Results Win10/USB3 bug OverLapped Results Aug 22, 2017
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

1 participant