Menu

Trouble communicating

Anonymous
2016-03-29
2016-03-29
  • Anonymous

    Anonymous - 2016-03-29

    Hello,

    I am currintly using PuTTY to communicate via USB serial COM with this board:
    http://www.micro-components.com/downloads/RegisterdDownloadArea/DE_EN_Manual_mp6-QuadEVA_02-2015_rev.3.pdf

    I have set BaudRate: 9600; Data bits: 8; Parity: none; Stop bits: 1; Flow control: none as works on Putty.
    However when I send a simple command I get the command as a response but nothing happens on the board.

    Any ideas?

    Once I get this communicating I am going to need to write a script which sends a sequence of commands with time intervals. For example [command 1] wait 1 second [command 2] wait 1 second and so on... not sure how to do that either but it looks possible with this software.

    Thank you!

     
  • Stefan Zieker

    Stefan Zieker - 2016-03-29

    Hi,

    maybe Putty sends other chars for an enter key. You can set this in the settings dialog (console options/send on enter key). Or maybe you forgot to add an enter?

    Best regards,
    Stefan

     

    Last edit: Stefan Zieker 2016-03-29
  • Anonymous

    Anonymous - 2016-03-29

    Yes, this sounds reasonable.
    I went to Settings > console options>
    I see a "send on enter key" with options of CR, LF, or CR+LF
    None of them change the behavior? Which option do you think will behave as send on enter?

     
  • Stefan Zieker

    Stefan Zieker - 2016-03-29

    Can you switch on the HEX console, send your string and then post the output of the HEX and the ASCII console please?

     

    Last edit: Stefan Zieker 2016-03-29
  • Anonymous

    Anonymous - 2016-03-29

    Im sending the command P1ON and getting back the same command so first bit is black and repeated bit is red.

    Ascii:
    P1ONP1ON

    Hex:
    0a
    0a
    0a
    0a
    50 31 4f 4e 50 31 4f 4e

     
  • Stefan Zieker

    Stefan Zieker - 2016-03-29

    Your Manual (http://www.micro-components.com/downloads/RegisterdDownloadArea/DE_EN_Manual_mp6-QuadEVA_02-2015_rev.3.pdf) says that you have to complete command with an enter key . But I cannot see this in your HEX output. Go to the send area in the main window and type:
    P1ON'enter key'

    Now you can play with the 'send on enter key'.

     

    Last edit: Stefan Zieker 2016-03-29
  • Anonymous

    Anonymous - 2016-03-29

    Still not working.
    I can't find in PuTTY settings what the enter key does either...

    But I tried and this is what happened.
    P1ON'enter key' gave this:

    2016-03-29 16:14:26.299
    50 31 4f 46 46 27 65 6e 74 65 72 20 6b 65 79 27 0a
    0a
    50 31 4f 4e 50 31 4f 46 46 27 45 4e 54 45 52 20 4b 45 59 27 50 31 4f 4e

     
  • Stefan Zieker

    Stefan Zieker - 2016-03-29

    Did you add the enter in the send area? I cannot see the enter key after P1ON (50 31 4f 4e). I have donwloaded Putty and could see that it sends \r\n on enter. Therefore you have to send (in hex): 50 31 4f 4e 0d 0a.
    You can see my config in the attached images.

     

    Last edit: Stefan Zieker 2016-03-29

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.