Shop OBEX P1 Docs P2 Docs Learn Events
How to read/debug serial comms from propeller - the PST does not show non-ASCII — Parallax Forums

How to read/debug serial comms from propeller - the PST does not show non-ASCII

ErlendErlend Posts: 612
edited 2014-03-02 00:37 in General Discussion
I am working to debug some serial command tranmissions from a piece of code & Propeller. The ones based on ASCII commands was easy, but now I want to debug a non-ASCII protocol. Any tips for a simple hex/bin terminal/viewer - assuming that PST cannot be set up to dislpay in that format?

Erlend

Comments

  • Cluso99Cluso99 Posts: 18,069
    edited 2014-03-01 03:29
    Can you change the prop output serial? I mean, output non ascii as hex (usually done between "<" and ">").
  • Mike GMike G Posts: 2,702
    edited 2014-03-01 04:31
    The ones based on ASCII commands was easy, but now I want to debug a non-ASCII protocol.
    How about using PST 's Dec or Hex method for debugging?

    This might be overkill, but I use HDD's Serial Monitor (professional) quite a bit. It's handy for figuring out serial protocols when documentation is lacking.

    It might make sense to roll your own, very basic, serial monitor.
  • FranklinFranklin Posts: 4,747
    edited 2014-03-01 14:07
    Realterm is a good free terminal emulator. http://realterm.sourceforge.net/
  • localrogerlocalroger Posts: 3,451
    edited 2014-03-01 15:57
    I wrote a utility for just this sort of thing:

    https://dl.dropboxusercontent.com/u/108807246/Sniff.exe

    Just run it, it has a help menu to explain the options.
  • ErlendErlend Posts: 612
    edited 2014-03-02 00:37
    I tried HDD's Serial Monitor, but that was too complex for me, tried realterm, but that one kept crashing, tried sniff, but could not understand how to use it. Then I found Indigo Terminal Emulator, and that works just perfect. Now I can see the bytes as transmitted by Propeller, and can debug/verify that they are correct before I connect Propeller to the various devices.

    Erlend
Sign In or Register to comment.