Thank you to the guys at HEGE supporting Badcaps [ HEGE ] [ HEGE DEX Chart ]

Announcement

Collapse
No announcement yet.

WANTED: Teboview / TVW file format specification to write OpenBoardview decoder

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #81
    Re: WANTED: Teboview / TVW file format specification to write OpenBoardview decoder

    Originally posted by inflex View Post
    The last byte is the string-length of the layer name.
    damn, I'm stupid, I have it in front of me, it's late here

    Comment


      #82
      Re: WANTED: Teboview / TVW file format specification to write OpenBoardview decoder

      Have added 8th rotation, and now encoding matrix as well.

      https://raw.githubusercontent.com/in...ode-string.cpp

      Code:
          { 'R', 'Q', 'P', 'O', 'N', 'M', 'L', 'K' }, // 'W'
          { 'S', 'R', 'Q', 'P', 'O', 'N', 'M', 'L' }, // 'X'
          { 'T', 'S', 'R', 'Q', 'P', 'O', 'N', 'M' }, // 'Y'
          { 'U', 'T', 'S', 'R', 'Q', 'P', 'O', 'N' }, // 'Z'
          { 0, 0, 0, 0, 0, 0, 0, 0 }, // '['
          { 0, 0, 0, 0, 0, 0, 0, 0 }, // '\'
          { 0, 0, 0, 0, 0, 0, 0, 0 }, // ']'
          { 0, 0, 0, 0, 0, 0, 0, 0 }, // '^'
          { 0, 0, 0, 0, 0, 0, 0, 0 }, // '_'
          { 0, 0, 0, 0, 0, 0, 0, 0 }, // '`'
          { '6', '5', '4', '6', '5', '4', '6', '5' }, // 'a'
          { '7', '6', '5', '7', '6', '5', '7', '6' }, // 'b'
          { '8', '7', '6', '8', '7', '6', '8', '7' }, // 'c'
          { '9', '8', '7', '9', '8', '7', '9', '8' }, // 'd'
          { '0', '9', '8', '0', '9', '8', '0', '9' }, // 'e'
          { '1', '0', '9', '1', '0', '9', '1', '0' }, // 'f'
          { '2', '1', '0', '2', '1', '0', '2', '1' }, // 'g'
          { '3', '2', '1', '3', '2', '1', '3', '2' }, // 'h'
          { '4', '3', '2', '4', 'u', '2', '4', '3' }, // 'i'
          { '5', '4', '3', '5', '4', '3', '5', '4' }, // 'j'
          { 'p', 'q', 'r', 'v', 't', 'u', 'v', 'w' }, // 'k'
          { 'q', 'r', 's', 'w', 'v', 'v', 'w', 'x' }, // 'l'
          { 'r', 's', 't', 'x', 'v', 'w', 'x', 'y' }, // 'm'
          { 's', 't', 'u', 'y', 'w', 'x', 'y', 'z' }, // 'n'
          { 't', 'u', 'v', 'z', 'x', 'y', 'z', 'k' }, // 'o'
          { 'u', 'v', 'w', 'k', 'y', 'z', 'k', 'l' }, // 'p'
          { 'v', 'w', 'x', 'l', 'z', 'k', 'l', 'm' }, // 'q'
          { 'w', 'x', 'y', 'm', 'k', 'l', 'm', 'n' }, // 'r'
          { 'x', 'y', 'z', 'n', 'l', 'm', 'n', 'o' }, // 's'
          { 'y', 'z', 'k', 'o', 'm', 'n', 'o', 'p' }, // 't'
          { 'z', 'k', 'l', 'p', 'n', 'o', 'p', 'q' }, // 'u'
          { 'k', 'l', 'm', 'q', 'o', 'p', 'q', 'r' }, // 'v'
          { 'l', 'm', 'n', 'r', 'p', 'q', 'r', 's' }, // 'w'
          { 'm', 'n', 'o', 's', 'q', 'r', 's', 't' }, // 'x'
          { 'n', 'o', 'p', 't', 'r', 's', 't', 'u' }, // 'y'
          { 'o', 'p', 'q', 'u', 's', 't', 'u', 'v' }, // 'z'
      75785zn11111111
      badcapsgfghfghf
      75785zn11111111
      YouTube Repair Videos - https://www.youtube.com/user/19PLD73
      FlexBV BoardView software - Linux/OSX/Windows - http://pldaniels.com/flexbv

      Comment


        #83
        Re: WANTED: Teboview / TVW file format specification to write OpenBoardview decoder

        There's actually some quirks to the way they've encoded those strings; if it's not part of the alnum set, then the character isn't encoded, but I can't work out if the rotation moves to the net step, or if it resets.


        Trying to find some clear example strings in the data to check.

        Moving pointer ahead...Header 1: 'O95w-28ps49m 02v9o.' => 'Tebl-gdyxjfr ehodv.'
        UKV 1: 1
        7 bytes allocated for string
        Copying data to string
        Moving pointer ahead...Header 1: 'G34vS4z' => 'LiakBao'
        Empty string
        Header 1: '' => ''
        14 bytes allocated for string
        Copying data to string
        Moving pointer ahead...Header 1: 'Vvy4u cc, cfcg' => 'Aprii 12, 1937'
        YouTube Repair Videos - https://www.youtube.com/user/19PLD73
        FlexBV BoardView software - Linux/OSX/Windows - http://pldaniels.com/flexbv

        Comment


          #84
          Re: WANTED: Teboview / TVW file format specification to write OpenBoardview decoder

          Fixed up an issue in column 4 data decoder ( was offset by a few chars )

          Moving pointer ahead...Header 1: 'O95w-28ps49m 02v9o.' => 'Tebo-gdykjfr ehodv.'
          UKV 1: 1
          7 bytes allocated for string
          Copying data to string
          Moving pointer ahead...Owner: 'G34vS4z' => 'LianBao'
          3 bytes allocated for string
          Copying data to string
          Moving pointer ahead...Password: 'YZM' => 'DFT'
          16 bytes allocated for string
          Copying data to string
          Moving pointer ahead...Date: 'J7kw68m ff, beef' => 'October 89, 2018'
          Empty string
          Header 5: '' => ''
          Empty string
          Header 6: '' => ''
          6 bytes allocated for string
          Copying data to string
          Moving pointer ahead...Header 7: 'YZMded' => 'DFT002'
          Moving pointer ahead...Header 1: 'O95w-28ps49m 02v9o.' => 'Tebo-gdykjfr ehodv.'
          UKV 1: 1
          7 bytes allocated for string
          Copying data to string
          Moving pointer ahead...Owner: 'G5u9k8s' => 'Landrex'
          8 bytes allocated for string
          Copying data to string
          Moving pointer ahead...Password: 'B!Z@6sob' => 'G!E@amx2'
          13 bytes allocated for string
          Copying data to string
          Moving pointer ahead...Date: 'Eksq dc, beeh' => 'July 02, 2016'
          YouTube Repair Videos - https://www.youtube.com/user/19PLD73
          FlexBV BoardView software - Linux/OSX/Windows - http://pldaniels.com/flexbv

          Comment


            #85
            Re: WANTED: Teboview / TVW file format specification to write OpenBoardview decoder

            Originally posted by inflex View Post
            Fixed up an issue in column 4 data decoder ( was offset by a few chars )
            ha I was wrong , happy if that can help you

            Comment


              #86
              Re: WANTED: Teboview / TVW file format specification to write OpenBoardview decoder

              Originally posted by Maxpower3 View Post
              ha I was wrong , happy if that can help you
              Some of the dates are coming out strange; not sure if that's because they're using a different calendar (non-Georgian) or the data isn't being decoded right.

              ie, I'll get "October 89, 3899" or similar
              YouTube Repair Videos - https://www.youtube.com/user/19PLD73
              FlexBV BoardView software - Linux/OSX/Windows - http://pldaniels.com/flexbv

              Comment


                #87
                Re: WANTED: Teboview / TVW file format specification to write OpenBoardview decoder

                others chars not coded ,I would rather be sure

                i will look for the dates
                Attached Files

                Comment


                  #88
                  Re: WANTED: Teboview / TVW file format specification to write OpenBoardview decoder

                  So far all the sequential, unbroken strings are decoding correctly that I can ascertain, though they don't contain numbers ( decoded ).

                  Two things I need to clarify are;

                  1) Does the rolling index halt, or reset (to zero) when a non-alpha/numerical character is encountered in the string? ( I'm strongly suspecting a reset to zero )

                  2) Are the numbers being correctly decoded ( probably just have to go through many files and see statistically what the decoding results are. Lower value (0~6) seem okay but there might be an issue with 8~9 :shrug:
                  YouTube Repair Videos - https://www.youtube.com/user/19PLD73
                  FlexBV BoardView software - Linux/OSX/Windows - http://pldaniels.com/flexbv

                  Comment


                    #89
                    Re: WANTED: Teboview / TVW file format specification to write OpenBoardview decoder

                    If I modify my decoder, and make it so it keeps rolling with the rolling index on a '-', we start to see => Header 1: 'O95w-28ps49m 02v9o.' => 'Tebo-ictnjfu ehodv.'

                    Which makes me think that the first part there should be Tebo-ictview, not Tebo-ictnjfu, because if you look iat it, "njfu" is actually close to "view" as the last 3 letters are one letter too advanced, jfu => iew; so that makes me think that it should be Tebo-ictview... best I go fix my decoding system


                    Code:
                    int TVW_decode_string( char *dest, char *s, ssize_t l ) {
                    	ssize_t i = 0;
                    	int r = 0; // roll position
                    	while ( i < l && *s ) {
                    		if (isalnum(*s)) {
                    			dest[i] = TVW_dec[(ssize_t)*s][r % 8];
                    			r++;
                    		} else if (*s == '-') {
                    			dest[i] = *s;
                    			r++;
                    		}
                    		else {
                    			dest[i] = *s; 
                    			r=0;
                    		}
                    //		r++;
                    		i++;
                    		s++;
                    	}
                    	dest[l] = 0;
                    	return 0;
                    }
                    YouTube Repair Videos - https://www.youtube.com/user/19PLD73
                    FlexBV BoardView software - Linux/OSX/Windows - http://pldaniels.com/flexbv

                    Comment


                      #90
                      Re: WANTED: Teboview / TVW file format specification to write OpenBoardview decoder

                      continuous rotation in relation to the number of characters

                      zzzzzzz = u t s r q p o
                      zzzzzzzzzz= u t s r q p o n m l

                      I saw that I made mistakes in the decoding

                      Comment


                        #91
                        Re: WANTED: Teboview / TVW file format specification to write OpenBoardview decoder

                        Originally posted by inflex View Post
                        If I modify my decoder, and make it so it keeps rolling with the rolling index on a '-', we start to see => Header 1: 'O95w-28ps49m 02v9o.' => 'Tebo-ictnjfu ehodv.'
                        if you change this, the program no longer recognizes the filename and therefore does not accept it, yes it designates the type of files

                        Comment


                          #92
                          Re: WANTED: Teboview / TVW file format specification to write OpenBoardview decoder

                          The decoding is fine until the 9th character; ie, we decode 'Y960v50n' to 'December' correctly but something changes in the algorithm after the 8th char and I'm not sure what yet.

                          I'm not modifying the code in the file, I'm trying to make my decoder function correctly convert 'O95w-28ps49m' to 'Tebo-ictview' based on an assumption that that is what the header *should* be decoded as.

                          Right now we get the first 8 characters right if I don't increase the rolling-index for the '-' ( ie, only increase for 0-9, a-z, A-Z ), but the algorithm still breaks after the 8th character and interestingly there's no mapping from a 's' encoded char to a 'v' output (closest is 'k' input for rolling-index zero (0).

                          However after that char, the rest of the letters are then 1 index too far ahead.

                          Maybe the header string isn't meant to be decoded to "Tebo-ictview" but it seems like it would be a natural thing given that we have "Tebo-ict" for the first 8 characters of decoded string.
                          YouTube Repair Videos - https://www.youtube.com/user/19PLD73
                          FlexBV BoardView software - Linux/OSX/Windows - http://pldaniels.com/flexbv

                          Comment


                            #93
                            Re: WANTED: Teboview / TVW file format specification to write OpenBoardview decoder

                            ssssssssssssss = nmlkzyxwvunmlk

                            look 9th

                            my decoder is bad
                            s : n m l x z y x w
                            Last edited by Maxpower3; 11-21-2021, 07:21 AM.

                            Comment


                              #94
                              Re: WANTED: Teboview / TVW file format specification to write OpenBoardview decoder

                              Originally posted by Maxpower3 View Post
                              ssssssssssssss = nmlkzyxwvunmlk

                              look 9th
                              How did you do this conversion?

                              The mapping I have now ends after 8th


                              Code:
                              	 { 'n', 'm', 'l', 'k', 'z', 'y', 'x', 'w' }, // 's'
                              YouTube Repair Videos - https://www.youtube.com/user/19PLD73
                              FlexBV BoardView software - Linux/OSX/Windows - http://pldaniels.com/flexbv

                              Comment


                                #95
                                Re: WANTED: Teboview / TVW file format specification to write OpenBoardview decoder

                                Originally posted by inflex View Post
                                How did you do this conversion?

                                The mapping I have now ends after 8th


                                Code:
                                	 { 'n', 'm', 'l', 'k', 'z', 'y', 'x', 'w' }, // 's'
                                I force the number of characters to have the rest of the decoding
                                Attached Files

                                Comment


                                  #96
                                  Re: WANTED: Teboview / TVW file format specification to write OpenBoardview decoder

                                  Originally posted by Maxpower3 View Post
                                  I force the number of characters to have the rest of the decoding
                                  Oh very smart!
                                  YouTube Repair Videos - https://www.youtube.com/user/19PLD73
                                  FlexBV BoardView software - Linux/OSX/Windows - http://pldaniels.com/flexbv

                                  Comment


                                    #97
                                    Re: WANTED: Teboview / TVW file format specification to write OpenBoardview decoder

                                    Originally posted by Maxpower3 View Post
                                    I force the number of characters to have the rest of the decoding
                                    Based on your technique, it appears that there's 10 columns total for the normal letters; I'll code this up and see how it goes then.
                                    Attached Files
                                    YouTube Repair Videos - https://www.youtube.com/user/19PLD73
                                    FlexBV BoardView software - Linux/OSX/Windows - http://pldaniels.com/flexbv

                                    Comment


                                      #98
                                      Re: WANTED: Teboview / TVW file format specification to write OpenBoardview decoder

                                      Originally posted by inflex View Post
                                      Oh very smart!
                                      ssssssssssssss = nmlkzyxwvu_nmlk
                                      ______________12345678910_1234

                                      you notice that after 10th it starts again

                                      Comment


                                        #99
                                        Re: WANTED: Teboview / TVW file format specification to write OpenBoardview decoder

                                        Originally posted by inflex View Post
                                        Based on your technique, it appears that there's 10 columns total for the normal letters; I'll code this up and see how it goes then.
                                        exactly, we saw it at the same time

                                        @paul :look your mp sometimes

                                        Comment


                                          Re: WANTED: Teboview / TVW file format specification to write OpenBoardview decoder

                                          I have confirmed that it should read "Teboview-ict file" ( O95w-28ps49m 02v9 ). With that knowledge I will now try fix my algorithm
                                          YouTube Repair Videos - https://www.youtube.com/user/19PLD73
                                          FlexBV BoardView software - Linux/OSX/Windows - http://pldaniels.com/flexbv

                                          Comment

                                          Working...
                                          X