Page MenuHomeAleph Objects Inc

Printer reset when connected via serial port
Closed, ResolvedPublic

Description

Experienced a strange error that would repeat itself in cura console:

< [10:58:47] USB host failed to start. Will retry in 10 seconds.
< [10:58:47] Starting USB host
< [10:58:47] OSCOKIRQ hasn't asserted in time
< [10:58:47] USB host failed to start. Will retry in 10 seconds.
< [10:58:47] Starting USB host
< [10:58:47] OSCOKIRQ hasn't asserted in time
< [10:58:47] USB host failed to start. Will retry in 10 seconds.
< [10:58:47] Starting USB host
< [10:58:47] OSCOKIRQ hasn't asserted in time
< [10:58:47] USB host failed to start. Will retry in 10 seconds.
< [10:58:47] Starting USB host
< [10:58:47] OSCOKIRQ hasn't asserted in time
< [10:58:47] USB host failed to start. Will retry in 10 seconds.
< [10:58:47] Starting USB host
< [10:58:47] OSCOKIRQ hasn't asserted in time
< [10:58:47] USB host failed to start. Will retry in 10 seconds.
< [10:58:47] Starting USB host
< [10:58:47] OSCOKIRQ hasn't asserted in time
< [10:58:47] USB host failed to start. Will retry in 10 seconds.
< [10:58:48] Unexpected error while accessing serial port. read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
< [10:58:48] Closing the USB printer connection.
< [10:58:48] Printer connection listen thread stopped for None

The printer also failed due to filament run out, but the values make me think it was a more complicated error:

< [10:52:51] OSCOKIRQ hasn't asserted in time
< [10:52:51] USB host failed to start. Will retry in 10 seconds.
< [10:52:51] Remaining mm: 22.95, 21.69
< [10:52:52] Remaining mm: 22.73, 21.69
< [10:52:53] Remaining mm: 24.38, 21.69
< [10:52:54] Remaining mm: 24.15, 21.69
< [10:52:55] Remaining mm: 23.94, 21.69
< [10:52:56] Remaining mm: 23.70, 21.69
< [10:52:57] Remaining mm: 23.52, 21.69
< [10:52:58] Remaining mm: 23.30, 21.69
< [10:52:59] Remaining mm: 23.15, 21.69
< [10:53:00] Remaining mm: 23.05, 21.69
< [10:53:00] Motion detected: 0
< [10:53:01] Starting USB host
< [10:53:02] OSCOKIRQ hasn't asserted in time
< [10:53:02] USB host failed to start. Will retry in 10 seconds.
< [10:53:02] Remaining mm: 23.82, 21.69
< [10:53:02] Motion detected: 0
< [10:53:03] Remaining mm: 23.79, 21.69
< [10:53:04] Remaining mm: 23.57, 21.69
< [10:53:05] Remaining mm: 23.44, 21.69
< [10:53:06] Remaining mm: 23.24, 21.69
< [10:53:07] Remaining mm: 22.94, 21.69
< [10:53:08] Remaining mm: 22.80, 21.69
< [10:53:09] Remaining mm: 22.55, 21.69
< [10:53:10] Remaining mm: 22.39, 21.69
< [10:53:11] Remaining mm: 22.23, 21.69
< [10:53:12] Starting USB host
< [10:53:13] OSCOKIRQ hasn't asserted in time
< [10:53:13] USB host failed to start. Will retry in 10 seconds.
< [10:53:13] Remaining mm: 21.92, 21.69
< [10:53:14] Remaining mm: 23.63, 21.69
< [10:53:15] Remaining mm: 23.31, 21.69
< [10:53:16] Remaining mm: 23.24, 21.69
< [10:53:17] Remaining mm: 24.83, 21.69
< [10:53:18] Motion detected: 0
< [10:53:18] Remaining mm: 23.98, 21.69
< [10:53:19] Motion detected: 0
< [10:53:19] Remaining mm: 24.00, 21.69
< [10:53:20] Remaining mm: 23.83, 21.69
< [10:53:21] Remaining mm: 23.52, 21.69
< [10:53:22] Remaining mm: 23.41, 21.69
< [10:53:23] Remaining mm: 23.07, 21.69
< [10:53:23] Starting USB host
< [10:53:24] OSCOKIRQ hasn't asserted in time
< [10:53:24] USB host failed to start. Will retry in 10 seconds.
< [10:53:24] Remaining mm: 23.00, 21.69
< [10:53:25] Remaining mm: 22.84, 21.69
< [10:53:26] Remaining mm: 22.68, 21.69
< [10:53:27] Remaining mm: 22.37, 21.69
< [10:53:28] Remaining mm: 22.29, 21.69
< [10:53:29] Remaining mm: 21.94, 21.69
< [10:53:30] Remaining mm: 21.75, 21.69
< [10:53:31] Remaining mm: 21.66, 21.69
< [10:53:32] Remaining mm: 21.33, 21.69
< [10:53:33] Motion detected: 0
< [10:53:33] Remaining mm: 24.00, 21.69
< [10:53:34] Starting USB host
< [10:53:35] OSCOKIRQ hasn't asserted in time
< [10:53:35] USB host failed to start. Will retry in 10 seconds.
< [10:53:35] Remaining mm: 23.80, 21.69
< [10:53:35] Motion detected: 0
< [10:53:36] Remaining mm: 23.69, 21.69
< [10:53:37] Remaining mm: 23.58, 21.69
< [10:53:38] Remaining mm: 23.15, 21.69
< [10:53:39] Remaining mm: 23.03, 21.69
< [10:53:40] Remaining mm: 22.72, 21.69
< [10:53:41] Remaining mm: 22.49, 21.69
< [10:53:42] Remaining mm: 22.42, 21.69
< [10:53:43] Remaining mm: 22.15, 21.69
< [10:53:44] Remaining mm: 21.86, 21.69
< [10:53:45] Starting USB host
< [10:53:46] OSCOKIRQ hasn't asserted in time
< [10:53:46] USB host failed to start. Will retry in 10 seconds.
< [10:53:46] Remaining mm: 21.20, 21.69
< [10:53:46] Motion detected: 0
< [10:53:46] Motion detected: 0
< [10:53:47] Remaining mm: 23.78, 21.69
< [10:53:48] Remaining mm: 23.48, 21.69
< [10:53:49] Remaining mm: 23.45, 21.69
< [10:53:50] Remaining mm: 23.41, 21.69
< [10:53:51] Remaining mm: 39.41, 21.69
< [10:53:53] echo:Active Extruder: 1
< [10:53:53] Remaining mm: 39.41, 21.69
< [10:53:54] Remaining mm: 39.41, 21.69
< [10:53:55] Remaining mm: 39.41, 18.18
< [10:53:56] Remaining mm: 39.41, 14.66
< [10:53:56] Starting USB host
< [10:53:57] OSCOKIRQ hasn't asserted in time
< [10:53:57] USB host failed to start. Will retry in 10 seconds.
< [10:53:57] Remaining mm: 39.41, 11.15
< [10:53:58] Remaining mm: 39.41, 9.40
< [10:53:59] Remaining mm: 39.41, 5.89
< [10:54:00] Remaining mm: 39.41, 2.38
< [10:54:01] echo:enqueueing "M117 Filament ran out"
< [10:54:01] echo:enqueueing "M25"
< [10:54:01] //action:pause

Event Timeline

EricNugent triaged this task as Normal priority.
MikeR added a comment.Dec 18 2018, 2:57 PM

@tutley so do I need to replace the archim board?

@MikeR no it is the USB board not the Archim

MikeR added a comment.Dec 18 2018, 3:12 PM

@tutley how easy is that board to replace? Do we have extras of those boards?

MikeR added a comment.Dec 18 2018, 3:14 PM

Why would I get this error if I am not printing from the USB stick? Unless the USB cable can give the same error, then why would the USB board be bad?

@MikeR this board is pretty easy to replace.

This error is because marlin is trying to set up the USB host (for the usb stick), but the oscillator on the USB board isnt initializing, so marlin will wait 10 seconds and try again.

This has nothing to do with printing through Cura over USB cord

MikeR added a comment.Dec 18 2018, 3:20 PM

Ah I see now, I got shovel and I dig it.

I have noticed that many USB Reader boards do not come up when first powered. This is a failure of the crystal oscillator circuit on the MAX3421e chip. A possible cause for this failure is the time required for the 5V and 3.3V power supply circuits to fully turn on. Observations with an oscilloscope show that is takes a little over 3ms for the two supplies to come up to their proper voltages. I am ordering a new type of voltage regulator that will have a faster turn on time and will mock up a few USB Reader boards to see if this fixes the problem. I have also done a re-design of the USB Reader board that uses an oscillator module instead of a crystal. Once some prototype boards come in, I will test this new design to see if it performs better.

The prototype boards with a 12MHz MEMS oscillator and delayed 3.3V turn on are performing well. 40 REV. C versions of the USB Reader have been ordered for our "Beta" run.

EricNugent closed this task as Resolved.Mar 22 2019, 9:33 AM

This issue appears to be resolved. I haven't seen it happen again since the changes were implemented.