Menu

Log reversed!!!

Anonymous
2016-10-24
2016-10-26
  • Anonymous

    Anonymous - 2016-10-24

    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? :(

     
  • Stefan Zieker

    Stefan Zieker - 2016-10-25

    Show me your script and a screenshot please.

    Best regards,
    Stefan

     
  • Anonymous

    Anonymous - 2016-10-25

    Hi Stefan,

    I heard two times to post screenshots and script but each time has not posted anything without even telling me why!

    :(

     
  • Anonymous

    Anonymous - 2016-10-25

    I try so

     
  • Stefan Zieker

    Stefan Zieker - 2016-10-25

    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
  • Anonymous

    Anonymous - 2016-10-25

    Hi Stefan,

    perfect, I fixed as suggested my script, now the console is right!
    Thanks for the support.

    Best regards,
    Marco

     
  • Stefan Zieker

    Stefan Zieker - 2016-10-26

    np :-)

    Best regards,
    Stefan

     

Anonymous
Anonymous

Add attachments
Cancel