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


    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

  2. #2
    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 $ $ @ @ $ $ @ @ $ @ @ $ $ @ @ @ $ $

  3. #3
    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

  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'll check it but it's either 2400 or 4800. When I figure out the exact baudrate, how can I decode the data?

  5. #5


    Did you find this post helpful? Yes | No

    Default Re: How to decode communication

    did you try all std baud rates from say 300 thru 38000 ? If you cant get to see some type of decernable ascii chars, then you would need to have the mfg info on data.
    also, it could be inverted, so you could invert the signal and try the bauds again for readable data.

  6. #6
    Join Date
    Oct 2008
    Location
    Arizona or Minnesota
    Posts
    22


    Did you find this post helpful? Yes | No

    Default Re: How to decode communication

    One thing I'd look at: is the data inverted? That would make you receive garbage all the time. Put a scope on the signal an look. If that's the case, use a 4049 gate to invert the data.
    JR

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


    Did you find this post helpful? Yes | No

    Default Re: How to decode communication

    I'm still kind of lost but seem to be making a little progress. I can see that the entire packet takes 20mS to transmit. It's hard to tell where one piece of data ends and the other begins. I can see the data change when I press buttons on the controller but some of the data isn't used for this application. In other words, those bits/bytes are just taking up space but must be included when the packet is transmitted.

    Perhaps this will help you guys help me. I concentrated on the ones digit for the home team score. I think it takes 750uS to transmit the ones digit and I based that assumption on when the edge falls to when it rises again at the end. However, some of the data takes about 500uS. Is it safe to assume that it takes 750uS for a byte and maybe 500uS for a bit?

    To duplicate the packet (I'm starting with the ones digit), I have the data from the PIC going to the input of a ULN2003A. On the output side I'm using a 10K pullup and then measuring it with the scope. One problem I'm having is that I can't quite get the timing right. I've attached two pictures that show my problem. The first picture is of the source. I'm trying to duplicate what is seen here. In the middle (-250uS from center to +500uS from center) is the number 2. Name:  #2 - Channel 1 (Source).JPG
Views: 1063
Size:  189.8 KB

    Here is my attempt to make the number 2. As you can see, I had to adjust the sec/div to 100uS and the second pulse in the number two isn't the same as the source.Name:  #2 - Channel 2 (PIC).JPG
Views: 1141
Size:  174.4 KB

    Regarding the data being inverted, what is the normal way? High to low or low to high?

    I've tried adjusting my settings but nothing seems to help. The relevant settings are:


    Code:
    RCSTA1 = $90 
    TXSTA1 = $24 
    DEFINE HSER_BAUD 300
    DEFINE HSER_CLROERR 1 ' Clear overflow automatically
    BAUDCON1 = %00111000
    
    And then I send the data like this:
    
    
    MAINLOOP:
    HSEROUT [dec 2]
    PAUSE 100
    GOTO MAINLOOP

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 : 1

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