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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Maxpower3
    Bad Veteran
    • Feb 2018
    • 1332
    • France

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

    Originally posted by inflex
    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

    • inflex
      Badcaps Veteran
      • Aug 2012
      • 545
      • Australia

      #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

      • inflex
        Badcaps Veteran
        • Aug 2012
        • 545
        • Australia

        #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

        • inflex
          Badcaps Veteran
          • Aug 2012
          • 545
          • Australia

          #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

          • Maxpower3
            Bad Veteran
            • Feb 2018
            • 1332
            • France

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

            Originally posted by inflex
            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

            • inflex
              Badcaps Veteran
              • Aug 2012
              • 545
              • Australia

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

              Originally posted by Maxpower3
              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

              • Maxpower3
                Bad Veteran
                • Feb 2018
                • 1332
                • France

                #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

                • inflex
                  Badcaps Veteran
                  • Aug 2012
                  • 545
                  • Australia

                  #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

                  • inflex
                    Badcaps Veteran
                    • Aug 2012
                    • 545
                    • Australia

                    #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

                    • Maxpower3
                      Bad Veteran
                      • Feb 2018
                      • 1332
                      • France

                      #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

                      • Maxpower3
                        Bad Veteran
                        • Feb 2018
                        • 1332
                        • France

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

                        Originally posted by inflex
                        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

                        • inflex
                          Badcaps Veteran
                          • Aug 2012
                          • 545
                          • Australia

                          #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

                          • Maxpower3
                            Bad Veteran
                            • Feb 2018
                            • 1332
                            • France

                            #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

                            • inflex
                              Badcaps Veteran
                              • Aug 2012
                              • 545
                              • Australia

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

                              Originally posted by Maxpower3
                              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

                              • Maxpower3
                                Bad Veteran
                                • Feb 2018
                                • 1332
                                • France

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

                                Originally posted by inflex
                                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

                                • inflex
                                  Badcaps Veteran
                                  • Aug 2012
                                  • 545
                                  • Australia

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

                                  Originally posted by Maxpower3
                                  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

                                  • inflex
                                    Badcaps Veteran
                                    • Aug 2012
                                    • 545
                                    • Australia

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

                                    Originally posted by Maxpower3
                                    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

                                    • Maxpower3
                                      Bad Veteran
                                      • Feb 2018
                                      • 1332
                                      • France

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

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

                                      you notice that after 10th it starts again

                                      Comment

                                      • Maxpower3
                                        Bad Veteran
                                        • Feb 2018
                                        • 1332
                                        • France

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

                                        Originally posted by inflex
                                        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

                                        • inflex
                                          Badcaps Veteran
                                          • Aug 2012
                                          • 545
                                          • Australia

                                          #100
                                          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

                                          Related Topics

                                          Collapse

                                          • ahmedtou
                                            HOW CAN I UPDATE HL-DT-ST BD-RE GGW-H20N XA02
                                            by ahmedtou
                                            Hi everyone,
                                            help me please


                                            I have an HL-DT-ST BD-RE GGW-H20N with ROM version: XA02.




                                            When I tried to burn a 25GB Blu-ray disc using ImgBurn, I got an error.
                                            I will share all the details with you, including the disc information.




                                            Code:
                                            HL-DT-ST BD-RE  GGW-H20N XA02 (ATA)
                                            Current Profile: BD-R
                                            
                                            Disc Information:
                                            Status: Empty
                                            State of Last Session: Empty
                                            Erasable: No
                                            Free Sectors: 12,219,392
                                            Free Space: 25,025,314,816 bytes
                                            Free Time: 2715:27:17 (MM:SS:FF)
                                            Next
                                            ...
                                            08-27-2025, 08:49 AM
                                          • m1ch43lzm
                                            Notice to users of XGecu TL866II Plus / T48 / T56 / T76 programmers regarding BIOS backup file size
                                            by m1ch43lzm
                                            Hi everyone
                                            I noticed on the Xgpro software the BIOS backup files have extra bytes at the end when reading some chips, this is because the Xgpro software also reads the OTP region of those flash chips, and by default will append that region to the saved file
                                            Programmer models: XGecu TL866II Plus / T48 / T56 / T76

                                            Example: GD25LQ128D (1.8V), IC size is listed as 0x1000000 Bytes (16777216 bytes) + 0xC00 bytes, those extra 0xC00 bytes will be appended to the end of the saved file by default, resulting in a file size of 16780288 bytes
                                            There's also an extra OTP Secu.R...
                                            09-06-2025, 05:47 PM
                                          • to5it0
                                            Need Clean BIOS/EC Bin File for Lenovo ThinkPad Yoga 11e 2H1703-27220F Rev. A Marked as U2501 on the motherboard.
                                            by to5it0
                                            Need Clean BIOS/EC Bin File for Lenovo ThinkPad Yoga 11e - Stuck with 0275 Error CMS

                                            Hello everyone,

                                            I am attempting a repair on a Lenovo ThinkPad Yoga 11e that is currently stuck at boot with the error: "0275 error CMS" even after setup new bios battery and will not allow me to enter the BIOS/Setup.

                                            This is a critical issue that I believe requires flashing the BIOS chip directly using a programmer (e.g., CH341A/RT809H), as standard software updates or resets are not possible.

                                            I have opened the laptop and identified the main BIOS chip...
                                            10-24-2025, 01:35 AM
                                          • testaccgta
                                            Unable to verify IC or write/erase/flash BIOS file to XMC QH128AHIG SPI chip using NeoProgrammer/AsProgrammer
                                            by testaccgta
                                            Hi, everyone!

                                            I've recently acquired two brand new SPI chips to replace the one currently in my Acer A514-54G laptop MB (FH5AT LA-K092P). The reason why I'm replacing the current SPI chip is because I had some difficulties with a third-party IT assistant who pretty much lacked the soldering skills and ended up destroying the current SPI chip soldered to my MB from factory.

                                            I've decided to do this on my own because I spent the past month or so learning some soldering skills and BIOS modding through Badcaps and WinRaid forums, hence the attempt. I've also chosen to buy...
                                            09-01-2024, 08:24 PM
                                          • Forest79
                                            Lenovo ThinkStation P520 BIOS file needed
                                            by Forest79
                                            Hello,

                                            I got a Lenovo ThinkStation P520 (Type 30BF) from a friend, asking me for a repair. Windows 11 offered a firmware upgrade as an optional update, and it failed.
                                            The emergency flash procedure from the hardware manual has also failed. So, I asked an acquaintance with better skills to flash the BIOS directly.

                                            However, the chip (a Macronix MX25L25673GMI-08G) has a size of 32 MB, and the BIOS file from the Lenovo website (extracted with UEFITool) has a little more than 16 MB. Thus, the software my acquaintance used (SiberiaProg v1.45, with a CH341A Programmer)...
                                            07-23-2023, 07:39 AM
                                          • Loading...
                                          • No more items.
                                          Working...