
Look at the log at trace level.
_Mark
What is causing a serial timeout?
Is there a solution for this?--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/977b7f83-9550-4a34-bbd6-b55628258d06n%40googlegroups.com.
you need to attach the whole log, to see where it comes from.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/aa40503f-1e3e-49a9-9fa9-028af87d91efn%40googlegroups.com.
There is nothing suspicious there. The controller simply seems to
not respond, or the serial connection is lost.
All I can tell you is to check cabling and grounding issues.
I always recommend using an USB isolator on the controller, and
to make sure the camera PCBs are not grounded to the
machine.
https://makr.zone/grounding-the-machine/283/
What controller are you using again?
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/f7e3764d-b418-4396-84db-f34b31e4c507n%40googlegroups.com.
>Smoothieware Smoothieboard 5XC V1.1 32 bit (China Clone)
I will not spend my spare time trying to support a board
from a manufacturer that is known to be a bad parasite of Open
Source projects and uses sup-par components to save a few
cents, knowing it will cause problems down the road.
I assume you didn't know when you bought it and you are now
a victim too. I'm sorry about this. But please buy one of the
products adhering to Open Source principles. These principles
are very important to me, they are the only thing that "pay"
for my efforts here.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/7fa3de63-7e8d-4732-9c7a-51d5648578b7n%40googlegroups.com.
Hi Hartmut,
All the very best in 2022 to you too!
> I have now installed an original Smmothie Board but the timeout problem has not been solved.
Well, that is unexpected. 🙁
A few approaches:
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/b4b4c4c8-ae49-49cf-8449-dad870038c63n%40googlegroups.com.
> Can there be any improvement if I control the machine via a TCP connection?
It would help with isolation, but unfortunately TCP is way too
slow on the Smoothie.
> All M and G commands tested in Pronterface no problems I don't get a timout error. all movements of G28, G0 X480 Y450, M800-M813 no problems
To make this more realistic, please write all the same commands
your OpenPnP would send into a file. You can enable Gcode logging
on the Driver to automatically create such a file. Then "play" the
file using Pronterface, so the serial exchange would probably be
as seamless as with OpenPnP. Specifically, the electrical noise or
ground bounce that is created by actuating something would overlap
with the next serial/USB packet being sent immediately.
Just to be sure: did you accept Issues & Solutions suggestions, like for serial flow control? Any other serial settings that might be different?
This is really getting strange.
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/8135d3aa-5153-4337-9753-6de07a0874a2n%40googlegroups.com.
> M commands have a time switch of 5 seconds and this also seems to provoke a timeout if the command sequence is too fast.
I don't understand that sentence, but it somehow sounds
suspicious.
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/89ac38a0-e44c-4be1-b829-7c1262de2a43n%40googlegroups.com.
I'm really at a loss here.
I wrote:
> Just to be sure: did you accept Issues & Solutions suggestions, like for serial flow control? Any other serial settings that might be different?
This question is still open, or have I missed something?
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/b639e66a-4db0-462d-81fb-d8d47cf473fen%40googlegroups.com.
I just re-watched your video. The machine speed is very
"conservative" 😉.
It is well possible that it takes more than 5 seconds for some of
these moves. Please simply try with a higher timeout value.
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/5b7ee218-c9ea-2865-d43b-e06ff7f06825%40makr.zone.
Or better yet, crank up the speed. I'd really love to watch this nice-looking machine at three, four, five times the speed, I'm sure it can take it, if my cr** Liteplacer can.
https://makr.zone/pick-place-machine-first-simulated-small-test-run/66/
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/bb50904e-6f74-2b7d-8d97-16e876944852%40makr.zone.

I recommend Dynamic Safe Z and then setting Safe Z as low as
possible for each of the nozzles. This will minimize the Z
movements and speed up operations. Given your machine has a large
Z headroom, you'll get a large Safe Z zone, which means you
nozzles will move around quite lopsided. When the nozzle is
switched, you'll have see-saw movement. This is normal and much
more efficient. And cool-looking, if you ask me.
The other things I can't explain "auf Vorrat". You need to ask
more specifically. Be sure to have read the Wiki linked by the
blue [i] buttons.
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/93fef2a6-f8e8-43a1-92c0-08b1e12f9057n%40googlegroups.com.



Hi Hartmut,
You should optimize Nozzle Safe Z handling & Zone using Issues
& Solutions. You'll get more optimized performance.
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/8dc2877a-3ab5-4250-96a8-1b6dc27a883bn%40googlegroups.com.
Hi Hartmut,
The red indicator looks like a ellipse. It seems you might have Units per Pixel set (manually?) on the bottom camera, that are completely uneven.If in doubt, set the X/Y Units per Pixel on the bottom
camera to zero and retry the Issues & Solutions step
you have in your screen-shot.
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/622eff3f-c6eb-4cb3-91c8-5f99916a8386n%40googlegroups.com.

WTF! (sorry, but this is really a case for the F word)
At 0:33 you see what looks like an Auto-Focus movement. But Auto-Focus Vision starts only at 0:38.
Frankly, I don't know how this is even possible.
The first thought is that there is something wrong with your flow
control (OpenPnP does not wait for the motion to complete). But
then it would be reversed, i.e. vision would come too early
(not waiting for the machine), not too late.
But then you get a second Auto-Focus move at 1:01. And I know for
a fact, there is only supposed to be one, and this code is
really a simple multi-pass loop! These are also Machine tasks;
there is a central entity queuing tasks, so even if you press the
Accept button twice, it should just do it twice, one after the
other, not somehow "interleave" it.
WTF!
Please send the machine.xml
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/77c06072-cdee-430a-ae46-535669a04b9en%40googlegroups.com.
Hi Hartmut,
You need to deal with these Issues & Solutions that you dismissed and/or left open, or that are useful (I mean the ones selected in the screen-shot below):

NOTEs:
The create nozzles for this head issue will create the vacuum valve actuators for you, so the two warnings (orange) further below will vanish. Furthermore, it should likewise solve the Nozzles N1 and N2 have the same Z axis error (red) for you.
The most important one is the MOVE_TO_COMPLETE_COMMAND
suggested issue. You should really
not "dismiss and forget" important commands like these 😭
This command is responsible for OpenPnP to wait for motion to
complete, if you remove it, nothing will work.
The suggestions further below about the camera preview FPS etc. might in-deed create the strange delayed vision feedback. Your cameras have a whopping 30 FPS preview set, and are not suspended during tasks, so they might create frames faster than what the GUI can handle and perhaps create the strange effect that vision frames from the task appear long after the preview frames (the task being starved out of capture frames), the effect perhaps being amplified in the exotic combination with a missing MOVE_TO_COMPLETE_COMMAND!
In the future, please do not dismiss Issues & Solutions unless you really, really know what you are doing. You have a Smoothieboard, so you can trust Issues & Solutions to generate good and extensive solutions for you. Ask here, if unsure. Please open new discussion threads for each of them.
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/a5ef4ed3-21af-4283-a77c-3c8690c291fan%40googlegroups.com.
No, just see the mail I sent you.
Note, for the most part, Issues & Solutions keeps
its eyes on your configuration during the whole life-time of your
machine. So if things are not good, they are reported, even after
having manually (mis-) configured them.
... unless you dismiss them, of course 😭
There are exceptions from this rule. Things that Issues &
Solutions cannot safely propose for you, will be
reported as missing is empty, but as soon as it or you filled in
something, Issues & Solutions is happy. Like the
CONNECT_COMMAND, HOME_COMMAND. You can empty them to get a
proposal. For Actuator read and actuate commands, you are on your
own, as these can be highly individual.
Other solutions can be re-opened, like the calibration steps.
Just switch on the Include Dismissed and Include
Solved switches in the Issues & Solutions tab.
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/d7804957-cdfd-44e4-bd1b-6214280542c0n%40googlegroups.com.


Read here, starting from...
"Please make sure your Smoothieware is configured to
use true axes, i.e. A B
C, not extruders..."
https://github.com/openpnp/openpnp/wiki/Motion-Controller-Firmwares#smoothieware
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/772fc843-0f2d-46e5-90e3-2bf06a698403n%40googlegroups.com.


I need a log. I don't understand what the video is supposed to show, frankly.
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/93dc5ee0-c0f2-416b-be2c-bc04b01e498bn%40googlegroups.com.
Hi Hartmut,
WARNING: I assume your machine is
still fresh, and you have not yet captured many locations or your
visual homing has never worked before, i.e. your homing fiducial
can still be defined. If this is not true,
please do not proceed, and report back.

_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/070a2f00-8d20-4b35-9505-a3f1ef1062efn%40googlegroups.com.



Please send the machine.xml
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/cdd50ffd-caf1-429a-9573-db27383bfe77n%40googlegroups.com.
Ahh, and I forgot: send the new
vision-settings.xml too, please.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/3889504e-7310-4cf3-a7ab-47c5b5719c71n%40googlegroups.com.
Ahh, sorry, and I need the packages.xml
and parts.xml too.
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/0a835c24-5681-4b98-a333-b2385de6ecb0n%40googlegroups.com.
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/0a835c24-5681-4b98-a333-b2385de6ecb0n%40googlegroups.com.
Hi Mark,
here are my answers to the 7 points.
1. done
2. doen
3. done
4. after the reference run, the head
moves over the fixed fiducial and displays the error message
"FIDUCIAL-HOME no matches found".
The Nozzle 2 stays at -20. With a click on (1) the two nozzles move back into
the neutral position.

5. Done. Works very well and no error messages.
6. I'm missing the Vision tab in the
openpnp software under the point listed in your link.
so I don't really know how to proceed.




Hi Hartmut
No offense, but could it be that this is a language problem?
Unfamiliar terms like "reference run" keep reappearing, we seem to
keep misunderstanding each other... 😭 so I suspect you are using
translation software. Right?
Darum ausnahmsweise in Deutsch... ich hoffe das kommt dir jetzt
nicht in den falschen Hals, es ist konstruktiv gemeint.
Ich sehe Einstellungen in deiner machine.xml die ich beim besten
Willen nicht nachvollziehen kann. Es sei denn, du verstehst die
Anweisungen von Issues & Solutions (und im Wiki) auf Englisch
nicht?
Benutzst du Übersetzungssoftware? Welche? Ich empfehle DeepL,
das kommt noch am ehesten sinnvoll raus. Du müsstest aber immer
noch kontrollieren, ob zum Beispiel keine falschen Negationen
reingerutscht sind. Zum Beispiel wundere ich mich schon sehr,
warum du in diesem Screenshot alles auf Auto gesetzt hast, nachdem
ich dir doch geschrieben (und eine Wiki Seite angegeben habe),
alles NICHT auf Auto zu stellen:

Ein anderes Beispiel: du hast die Soft Limits (Begrenzung des
Bewegungsbereiches) der Z Achse und die Safe Zone (Bereich, wo die
Z Achse auf sicherer Höhe zurückgezogen ist) auf denselben Werten.
Selbstverständlich kann so überhaupt nichts funktionieren. Ich
kann mir aber kaum vorstellen, wie man so was falsch machen kann,
es sei denn, du hast die Issues & Solutions Anweisungen (in
Englisch) nicht verstanden...?

Tipp für die Zukunft: man kann die Text-Blöcke in den
Issues & Solutions mit der rechten Maustaste anklicken,
sie blinken dann schnell auf Grau, als Zeichen, dass sie in die
Zwischenablage kopiert wurden. Dann kannst du sie DeepL füttern.


Zu deiner Konfig:
Der schlimmste Bock ist in der Kamera. Du hast die reguläre Z Achse zugewiesen, statt die Virtuelle Z Achse. Komischerweise moniert das Issues & Solutions bisher nicht (war eigentlich überzeugt, dass es dies tut). Ich habe das nun hinzugefügt, kommt in einer nächsten Version.
> I'm missing the Vision tab in the openpnp software under the point listed in your link.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/f16dad55-dbcb-4f29-92a9-eb075a12a6ben%40googlegroups.com.




