Monitoring PIC UART & Modem Com.

Discussion in 'Programmer's Corner' started by R!f@@, Dec 31, 2016.

  1. R!f@@

    Thread Starter AAC Fanatic!

    Apr 2, 2009
    9,647
    1,110
    Happy New Year Greetings to all My Friends on AAC.

    Wish you a prosperous new year 2017. :D


    I like to know if there is a way to check what the PIC UART & MODEM is talking about. ( I mean of course I know what they talk since I am the one programming them. )

    I like to do some time calculations and to do that I need to know the time the two takes to talk to each other.
    i.e response time calculations and to trouble shoot certain errors if it occurs.

    I like to see the communication via serial port of PC.
    The PIC UART is connected via MAX232 to Modem
     
  2. nerdegutta

    Moderator

    Dec 15, 2009
    2,660
    917
    Hi.

    Happy new year.

    I connected a PIC TX pin to the RX pin on an RS232/TTL USB converter, which in turn was connected to my computer. I was able to see all the communication coming from the PIC.
     
  3. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    7,815
    3,621
  4. R!f@@

    Thread Starter AAC Fanatic!

    Apr 2, 2009
    9,647
    1,110
    I can see that.
    I wanted to see the communication going on between the PIC and the Modem.
     
  5. R!f@@

    Thread Starter AAC Fanatic!

    Apr 2, 2009
    9,647
    1,110
    A logic Analyzer is more expense.
    Wondering if I could build one .
     
    geoffers likes this.
  6. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    7,815
    3,621
    Of course you can. You will just need to understand of of the timing of the pulse train so you can decipher the data. Then there is the whole GUI end. But look at that open source stuf, that part might be free.

    And I think the open source hardware is free too. But I think they sell complete kits.

    I wrote a "serial data analyzer" for a PC years ago. It requires your PC has 2 serial ports. If you are interested I can see if I still have it.
     
    Last edited: Jan 1, 2017
  7. R!f@@

    Thread Starter AAC Fanatic!

    Apr 2, 2009
    9,647
    1,110
    I think I have two coms.
    Can I see it ?
     
  8. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    7,815
    3,621
    I found it but it is so old I can't load it into Visual Basic. Maybe you can find an old version or figure out how to convert?

    I have the EXE but it says there is a missing OCX. That give you an idea how old this thing is. ;)
     
    • SDA.zip
      File size:
      2.3 KB
      Views:
      4
  9. R!f@@

    Thread Starter AAC Fanatic!

    Apr 2, 2009
    9,647
    1,110
    Do I need VB ?
     
  10. MaxHeadRoom

    Expert

    Jul 18, 2013
    17,751
    5,402
    If you have a Pickit2 the standalone program has a UART diagnostic in it as well as a logic analyzer.
    Max.
     
  11. MaxHeadRoom

    Expert

    Jul 18, 2013
    17,751
    5,402
    The link I believe I posted earlier to the RS232COM monitor program also has how to make a cable and a free limited time program to use a data logger between two RS232 ports.
    http://www.rs232pro.com/ it requires a third monitor P.C. to data log.
    Max.
     
  12. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    7,815
    3,621

    Yes but looks like Max cam up with something better,
     
  13. Sensacell

    Moderator

    Jun 19, 2012
    2,269
    725
    I do shit-tons of serial com debugging work, in terms of cost and simplicity, you cannot beat the combo of:

    A) Digital scope, watching TX and RX lines.

    B) A terminal emulator program, like Brays Terminal.

    Use the scope to see the overall timing and relationship of the data packets, use the terminal emulator to see what the data actually is.

    There are better tools (some digital scopes can decode and display the serial data along with the waveforms) but they tend to be very expensive.
     
  14. R!f@@

    Thread Starter AAC Fanatic!

    Apr 2, 2009
    9,647
    1,110
    It's good to have such a tool.
    Thanks guys
     
Loading...