1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

What does the module do if it receives a bad command?

Discussion in 'GPIO Modules' started by Dominic Read, Jul 3, 2015.

  1. Dominic Read

    Dominic Read New Member

    Joined:
    Jul 3, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Gender:
    Male
    Location:
    Atlanta, GA
    If my software is misbehaving, or if there is a communications glitch and I send "GPI SET 2" (for instance) what is the response of the module?
    When command bytes are echoed back to the virtual com port; have they gone down the USB conversion to the module, been seen by the module, echoed and sent back up the USB to the virtual com port input buffer, or is the echo done locally in the computer?
    Does the module echo byte by byte or is the entire command echoed only when carriage return is seen?
     
  2. admin

    admin Administrator Staff Member

    Joined:
    Jan 23, 2015
    Messages:
    169
    Likes Received:
    11
    Trophy Points:
    18
    Hi Dominic,

    Every character sent to the device goes all the way to the firmware and echoed from there. If the device receive a incorrectly formatted command, it will ignore the command silently. There is one caveat though. If bad data is trailing an otherwise correct command, the command will still be executed.

    Thanks,
    Tom
    Numato Lab
     

Share This Page