Hi,
I do not understand, I made a script that responds to ENQ character (Ascii 5) with the ACK character (ASCII 6), but in the hex log I see the character first 06 and then 05?
Why? :(
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Its a problem is in the thread which adds the data to the console. In your case the serial port:
- receives 06
- sends 05
- - receives 06
- sends 05
- -...
->Everthing is OK.
But the console adds it in the wrong order. You can avoid this by adding scriptThread.sleepFromScript(2) in dataReceivedSlot. I will fix this in the next version of SC.
Best regards,
Stefan
Last edit: Stefan Zieker 2016-10-25
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Hi,
I do not understand, I made a script that responds to ENQ character (Ascii 5) with the ACK character (ASCII 6), but in the hex log I see the character first 06 and then 05?
Why? :(
Show me your script and a screenshot please.
Best regards,
Stefan
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Hi Stefan,
I heard two times to post screenshots and script but each time has not posted anything without even telling me why!
:(
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
I try so
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
...and now the script
Its a problem is in the thread which adds the data to the console. In your case the serial port:
- receives 06
- sends 05
- - receives 06
- sends 05
- -...
->Everthing is OK.
But the console adds it in the wrong order. You can avoid this by adding scriptThread.sleepFromScript(2) in dataReceivedSlot. I will fix this in the next version of SC.
Best regards,
Stefan
Last edit: Stefan Zieker 2016-10-25
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Hi Stefan,
perfect, I fixed as suggested my script, now the console is right!
Thanks for the support.
Best regards,
Marco
np :-)
Best regards,
Stefan