How to decode communication


Closed Thread
Results 1 to 18 of 18

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    425

    Default How to decode communication

    I have a device that uses wired communication and need to decode it, however, I don't know anything about the protocol. I've never done this before (attempted to decode data where I don't know the protocol) and I'm hoping someone can give me some pointers as to the most efficient method to figure it out.

    Here is what I know:

    1. It's for a little league football scoreboard.
    2. It travels about 300 feet.
    3. It's wired and there are two wires going to the scoreboard.
    4. When I measured the wires with a DMM it is about 14.9 VDC.
    5. The data appears to be PWM as data is constantly flowing whether a button is pushed or not.
    6. The frequency appears to be approximately 1.6 kHZ and I can see the data using an oscilloscope.
    7. There are a lot of 74HCxx's on the PCB.
    8. I tried using hyperterminal and while I could see data nothing appeared to be valid data. The speed does appear to be around 4800 bps.
    9. There is an RJ11 jack on the PCB but I don't know if this is used for the communication or not. I was taking measurements from another connector on the PCB.

    That's pretty much all I know. This is an area where I have very little experience (data communication) so any pointers would be appreciated.

  2. #2
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    967


    Did you find this post helpful? Yes | No

    Default Re: How to decode communication

    You can start by making educated guesses by looking at the chips on the communication board. That will give clues to what is going on there. A photo of the board might help you get ideas here. It could be a current loop communication which was used to cover long distances before RS485 became the norm.

  3. #3
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    425


    Did you find this post helpful? Yes | No

    Default Re: How to decode communication

    I know the board was manufactured in 1998 by Daktronics. I don't have it with me but I will try to post a picture when I get home tonight. I'm stuck on two problems.

    1. The constant data makes it hard for me to determine where the comms starts and ends.

    2. The PWM (or at least that's what it appears to be) seems like it isn't steady. This could be my probe so I'll recheck it when I get home.

    Maybe this will help.....maybe not. Here is a log from Hyperterminal. Most of it was automatically sent by the controller and I pushed a button five or six times during this log. I connected the output pin of the scoreboard to pin 2 of the Max232. I was using 4800 bps:

    Code:
       $      	 @  	 @@    $    $      	 @      	 €     $     	 @  	 @  	 €     $    $ 	 @  	 @  	 @     $    $ 	 @  	 @  	 @I    $    $      	 @  	 @@    $    $      	 @  	 @  	 €     $     	 @  	 @  	 €     $    $ 	 @  	 @  	 @     $    $ 	 @  	 @  	 @I    $    $      	 @  	 @     $    $         $ 	 @  	 € 	 @  	 €  	 @  	 €          $    ’    $      	 @    @  	 @  	 @  	 @     	 	 @     $    $    $  @     $$	 @  	 @  	 @  	 @  	 @  	  $    	    $    $ 	 €       	 @    @  	 @  	 @     $    $      	 @  	 @H    $    $      	 @  	 @     $    $      	 @  	 @  	 €     $    $ 	 @  	 @  	 @     $$	  $ 	 @     $         $      	 €    @  	 @H $ @  	 @       	 @     $ 	 @     $   @I    $ 	 @  	 €  	 @  	 @  	 @  	 €       	 €     $$	 €       	 @I      	 @  	     	 @       	 €     $ 	 €     $ 	 @       	 @  	      	 @     $    $    $ 	 @  	 @  	 @     $    $ 	 @  	 @  	 @I    $    $      	 @  	 @@    $    $      	 @  	 @  	 €     $     	 @  	 @  	 €     $    $ 	 @  	 @  	 @     $    $ 	 @  	 @  	 @I    $    $      	 @  	 @     $    $      	 @  	 @  	 €     $    	 	 @  	 @  	 €     $    $ 	 @  	 @       	 €     $ ) €     $ 	 @I    ’ 	 @  	 € 	 @  	  $ 	 @     $         $   @  	 €    @  	 @H  @  	 @       	 @H    $ 	 @     $   @     $ 	 @  	 €  	 @  	 @  	 @  	 €       	 @  	 @     $    $      	 @  	 @  	       $    $ 	 @  	 @  	 @     $    $ 	 @  	 @  	 @$    $    $      	 @  	 @  	  $    $ 	 A     $ 	 @  	   	 @  	 €  	 @  	            $    ’    $   @  	 @    @  	 @  	 @  	 @      	 @     $    $    $  @@    $$	 @  	    	 @  	 @  	       $     	 @  	 @  	       $    $ 	 @  	 @  	       $    $ 	 @  	 @  	 @I    $    $      	 @  	 @     $ 	         	       $ 	       $$	 @I      	 @  	 * 	 @  	  $ 	 @     $         $      	      @  	 @I    $    $      	 @  	 @     $    $      	 @  	 @  	       $    	 	 @  	 @  	       $    $ 	 @       	 @       	 @  	   	 @     I 	 @     $         $   @     $ $ @  	 @  	 @  	 @       	 @     I 	 @  	 @  	 @     $    $ 	 @  	 @  	 @     $    $      	 €          $      	 @    @  	 @  	 @  	 @       	 @     $    $    $ $ @H  @  	 @  	       $    $ 	 @  	 @  	 @I    $    $      	 @  	 @H    $    $      	 @     $ 	 @H    $    I    $   @  	    	 @  	 @@ 	 @  	 @       	       $ 	       $ 	 @I    $    $      	 @  	 @@    $    $      	 @  	 @  	 €     $     	 @  	 @       	 @H    $ 	 @     $   @     $ 	 @  	 €  	 @  	 @  	 @  	 €       	 €     $H   $    ’      	 @  	 @  	       $    	 	 @  	 @  	       $    $ 	 @  	 @  	 @     $    $ 	 @  	 @  	 @I    $    $      	 @  	 @     $    $      	 @  	 @  	       $    	 	 @  	 @  	       $    $ 	 @  	 @  	 @     $    $      	 @  	 @H    $    $      	 @  	 @     $    $      	 @  	 @  	       $    I 	 @  	 @  	       $    $ 	 @  	 @  	 @     $    $      	 @  	 @H    $    $      	 @  	 @  	       $      	 @  	 @  	       $    $ 	 @  	 @  	 @     $    $ 	 @  	 @  	 @I    $    $      	 @  	 @H    $    $      	 @  	 @  	       $      	 @  	 @  	       $    $ 	 @  	 @  	 @     $    $ 	 @  	 @  	 @I    $    $      	 @  	 @@    $    $      	 @  	 @  	       $     	 @  	 @  	       $    $ 	 @  	 @  	 @     $    $ 	 @  	 @  	 @I    $    $      	 @  	 @     $    $      	 @  	 @  	       $    	 	 @  	 @  	       $    $ 	 @  	 @  	 @     $    $ 	 @  	 @  	 @I    $    $      	 @  	 @     $    $      	 @  	 @  	       $    	 	 @  	 @  	       $    $ 	 @  	 @  	 @     $    $      	 @  	 @H    $    $      	 @  	 @     $    $      	 @  	 @  	       $    $ 	 @  	 @  	 @     $    $ 	 @  	 @  	 @     $    $      	 @  	 @H    $    $      	 @  	 @  	       $      	 @  	 @  	       $    $ 	 @  	 @  	 @     $    $ 	 @  	 @  	 @I    $    $      	 @  	 @H    $    $      	 @  	 @  	       $      	 @  	 @  	       $    $ 	 @  	 @  	 @     $    $ 	 @  	 @  	 @I    $    $      	 @  	 @@         $      	 @  	 @  	       $     	 @  	 @  	       $    $ 	 @  	 @  	 @     $    $ 	 @  	 @  	 @I    $    $      	 @  	 @     $    $      	 @  	 @  	       $    	 	 @  	 @  	       $    $ 	 @  	 @  	 @     $    $
    Last edited by Christopher4187; - 18th September 2013 at 16:33. Reason: The code box was only two lines tall

  4. #4
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    425


    Did you find this post helpful? Yes | No

    Default Re: How to decode communication

    I can't get the code box to be any larger. It's missing the spaces but here is the data:

    $ @ @@ $ $ @  € $  @ @ € $ $ @ @ @ $ $ @ @ @I $ $ @ @@ $ $ @ @ € $  @ @ € $ $ @ @ @ $ $ @ @ @I $ $ @ @ $ $ $ @ € @ € @ € $ ’ $ @ @ @ @ @ @ $ $ $  @ $$ @ @ @ @ @ $ $ $ € @ @ @ @ $ $ @ @H $ $ @ @ $ $ @ @ € $ $ @ @ @ $$ $ @ $ $ € @ @H $ @ @ @ $ @ $ @I $ @ € @ @ @ € € $$ € @I @   @ € $ € $ @ @  @ $ $ $ @ @ @ $ $ @ @ @I $ $ @ @@ $ $ @ @ € $  @ @ € $ $ @ @ @ $ $ @ @ @I $ $ @ @ $ $ @ @ € $ @ @ € $ $ @ @ € $ ) € $ @I ’ @ € @ $ @ $ $ @ € @ @H  @ @ @H $ @ $ @ $ @ € @ @ @ € @ @ $ $ @ @ $ $ @ @ @ $ $ @ @ @$ $ $ @ @ $ $ A $ @  @ € @ $ ’ $ @ @ @ @ @ @  @ $ $ $  @@ $$ @ @ @ $  @ @ $ $ @ @ $ $ @ @ @I $ $ @ @ $ $ $$ @I @ * @ $ @ $ $ @ @I $ $ @ @ $ $ @ @ $ @ @ $ $ @ @ @  @ I @ $ $ @ $ $ @ @ @ @ @ I @ @ @ $ $ @ @ @ $ $ € $ @ @ @ @ @ @ $ $ $ $ @H  @ @ $ $ @ @ @I $ $ @ @H $ $ @ $ @H $ I $ @ @ @@ @ @ $ $ @I $ $ @ @@ $ $ @ @ € $  @ @ @H $ @ $ @ $ @ € @ @ @ € € $H $ ’ @ @ $ @ @ $ $ @ @ @ $ $ @ @ @I $ $ @ @ $ $ @ @ $ @ @ $ $ @ @ @ $ $ @ @H $ $ @ @ $ $ @ @ $ I @ @ $ $ @ @ @ $ $ @ @H $ $ @ @ $ @ @ $ $ @ @ @ $ $ @ @ @I $ $ @ @H $ $ @ @ $ @ @ $ $ @ @ @ $ $ @ @ @I $ $ @ @@ $ $ @ @ $  @ @ $ $ @ @ @ $ $ @ @ @I $ $ @ @ $ $ @ @ $ @ @ $ $ @ @ @ $ $ @ @ @I $ $ @ @ $ $ @ @ $ @ @ $ $ @ @ @ $ $ @ @H $ $ @ @ $ $ @ @ $ $ @ @ @ $ $ @ @ @ $ $ @ @H $ $ @ @ $ @ @ $ $ @ @ @ $ $ @ @ @I $ $ @ @H $ $ @ @ $ @ @ $ $ @ @ @ $ $ @ @ @I $ $ @ @@ $ @ @ $  @ @ $ $ @ @ @ $ $ @ @ @I $ $ @ @ $ $ @ @ $ @ @ $ $ @ @ @ $ $

  5. #5
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: How to decode communication

    Chris, Measure the time of the smallest pulse and that should be the the baudrate.

    Dave Purola,
    Dave Purola,
    N8NTA
    EN82fn

  6. #6
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    425


    Did you find this post helpful? Yes | No

    Default Re: How to decode communication

    I'll check it but it's either 2400 or 4800. When I figure out the exact baudrate, how can I decode the data?

  7. #7
    Join Date
    May 2013
    Location
    australia
    Posts
    2,644


    Did you find this post helpful? Yes | No

    Default Re: How to decode communication

    it could be a stream of data for 7 segment display array, that's updated 50 times a second . ie every bit represents a segment

  8. #8
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    425


    Did you find this post helpful? Yes | No

    Default Re: How to decode communication

    It actually worked! Some of my times are off a bit so the numbers looked a little funny but overall the comms works well. What I also found interesting is that the controller sent the data every 2.5mS but it's not even necessary. I sent it once and the numbers stayed on the scoreboard.

    Thanks to all who helped.

  9. #9
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: How to decode communication

    Sending the message constantly would reduce potential for noise interpreted as data interfering with the display too long,
    but checksumming the message would better achieve that.
    Last edited by Art; - 23rd September 2013 at 07:19.

Similar Threads

  1. DCF77 decode
    By mombasa in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 18th January 2015, 18:27
  2. How to decode an SMS which looks like this ...
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 8th October 2009, 00:26
  3. encode/decode manchester
    By a_critchlow in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 6th February 2006, 08:50
  4. Decode RC5 ?
    By charudatt in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 3rd November 2005, 10:12
  5. RC5 Encode / Decode
    By charudatt in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 18th October 2003, 05:14

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts