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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • inflex
    Badcaps Veteran
    • Aug 2012
    • 544
    • Australia

    #1

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

    There's file format called "Teboview" with an extension .tvw, and I've noticed some Lenovo laptop boards are using it.

    I would like to write a decoder for the format for OpenBoardview but thus far, naturally, I've not found any useful specification on the internet. I've downloaded TeboView-ICT but unfortunately it also doesn't provide a lot of information about the technical information for each part/net/etc.

    I've decoded a moderate amount of the file format but I would *really* appreciate it if anyone could drop a file format spec accidentally

    There's at least one 3rd party program out there that can decode it that I know of but I'm not sure how they got the spec and it's unlikely they're going to share it.

    As an alternative, if anyone has some *small* TVW files they'd like to share, that might provide me a smaller search space to decode the puzzle.

    Most of the files I have now are 1MB+, something simpler more along the lines of 100K would be vastly preferred
    YouTube Repair Videos - https://www.youtube.com/user/19PLD73
    FlexBV BoardView software - Linux/OSX/Windows - http://pldaniels.com/flexbv
  • mon2
    Badcaps Legend
    • Dec 2019
    • 13908
    • Canada

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

    hi. attached are a few small filesize tvw files.

    Adding another boardviewer that can support the tvw format. Extract and launch the executable from within the same folder as it makes use of the dll files.

    https://we.tl/t-e8KqK8jigX
    Attached Files
    Last edited by mon2; 10-31-2021, 06:42 AM.

    Comment

    • inflex
      Badcaps Veteran
      • Aug 2012
      • 544
      • Australia

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

      Originally posted by mon2
      hi. attached are a few small filesize tvw files.
      Many thanks for that ... definitely a nice improvement to only have 1/10th the volume of data to dig through.

      Hopefully I can decipher the trickery they're using (I'm sure there's a real reason for it).

      It would be great if we could find something like a simple 2-layer board with only a couple of components on it. Not sure how or who generates tvw files but if it's possible, creating very simple boards is often a good way to start the decoding process too.

      Many thanks again mon2.
      YouTube Repair Videos - https://www.youtube.com/user/19PLD73
      FlexBV BoardView software - Linux/OSX/Windows - http://pldaniels.com/flexbv

      Comment

      • SMDFlea
        Super Moderator
        • Jan 2018
        • 20504
        • UK

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

        Can you post an example of what youve decoded already,what should we be looking for
        Attached Files
        Last edited by SMDFlea; 11-13-2021, 08:55 AM.
        All donations to badcaps are welcome, click on this link to donate. Thanks to all supporters

        Comment

        • inflex
          Badcaps Veteran
          • Aug 2012
          • 544
          • Australia

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

          I've created a github project for this reverse-engineering task

          https://github.com/inflex/teboviewfomat
          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
            • 544
            • Australia

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

            ahem... I mean https://github.com/inflex/teboviewformat
            YouTube Repair Videos - https://www.youtube.com/user/19PLD73
            FlexBV BoardView software - Linux/OSX/Windows - http://pldaniels.com/flexbv

            Comment

            • mmu
              Member
              • Aug 2019
              • 28
              • France

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

              Oh, Pascal strings everywhere :-)

              Looking at the 3 example files, and counting strings with backslashes inside, it seems to me the 4th value in the header after all the strings should be the layer count.

              I started writing a python parser, not much else to see yet.

              Comment

              • mmu
                Member
                • Aug 2019
                • 28
                • France

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

                Managed to get TeboView to run under WINE. But it's 5am so I should sleep some hours first.

                Comment

                • inflex
                  Badcaps Veteran
                  • Aug 2012
                  • 544
                  • Australia

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

                  Originally posted by mmu
                  Managed to get TeboView to run under WINE. But it's 5am so I should sleep some hours first.
                  You can also try running "Boardviewer" which can decode the tvw file format, and might be doing a more simplified decoding process
                  YouTube Repair Videos - https://www.youtube.com/user/19PLD73
                  FlexBV BoardView software - Linux/OSX/Windows - http://pldaniels.com/flexbv

                  Comment

                  • mmu
                    Member
                    • Aug 2019
                    • 28
                    • France

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

                    What's with this "nail" thing that's always -1 anyway?

                    Comment

                    • mmu
                      Member
                      • Aug 2019
                      • 28
                      • France

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

                      I'll be pushing what I have here, not much for now.

                      Comment

                      • inflex
                        Badcaps Veteran
                        • Aug 2012
                        • 544
                        • Australia

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

                        Originally posted by mmu
                        I'll be pushing what I have here, not much for now.
                        Thanks for that, would you be also able to comment with some sort of breakdown of the structure you're decoding in addition to the python decoder, ie;

                        headerformat:

                        bytes / length | description
                        ------------------------------------------


                        I'll update it on my file format description text so you can get an idea of the format; that way at least if it's documented it's easier for everyone to implement in their own script/language
                        Last edited by inflex; 11-13-2021, 06:58 AM.
                        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
                          • 544
                          • Australia

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

                          Trying to write a format table for these types of very dynamic (length) structures is frustrating. I'll try write something with more clarity
                          YouTube Repair Videos - https://www.youtube.com/user/19PLD73
                          FlexBV BoardView software - Linux/OSX/Windows - http://pldaniels.com/flexbv

                          Comment

                          • mmu
                            Member
                            • Aug 2019
                            • 28
                            • France

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

                            Yeah it's just trying stuff out for now.

                            Comment

                            • inflex
                              Badcaps Veteran
                              • Aug 2012
                              • 544
                              • Australia

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

                              I've updated the fileformat description document with what I'm trying to achieve

                              Code:
                              PART entry:
                              type/details	| description
                              ----------------------------------------
                              string		part name
                              int32		bounding box minimum x
                              int32		bounding box minimum y
                              int32		bounding box max x
                              int32		bounding box max y
                              int32		center x
                              int32		center y
                              int32		rotation (degrees)
                              uint32		unknown (132)
                              uint32		unknown (0)
                              uint32		unknown (1417)
                              uint8		unknown (1)
                              string		metadata about part (100K etc)
                              int16		unknown
                              string		package name (case insensitive)
                              string		unknown, possible UID
                              uint32		unknown (0)
                              uint32		pincount
                              uint32		unknown (2)
                              PINS			Array of pins
                              
                              
                              PIN entry:
                              type/details	| description
                              ----------------------------------------
                              uint32		networkID/map entry 
                              uint32		unknown (0)
                              uint32		integer pin index (1-based, ie, 1, 2, 3...n)
                              string		pin name (1, 2, 3 etc for small parts, or AA42, B24 etc for BGA)
                              uint32		unknown (0)
                              YouTube Repair Videos - https://www.youtube.com/user/19PLD73
                              FlexBV BoardView software - Linux/OSX/Windows - http://pldaniels.com/flexbv

                              Comment

                              • mmu
                                Member
                                • Aug 2019
                                • 28
                                • France

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

                                Looking at the SOLDERMASK_TOP layer, the first part is actually a shape dictionary, with bounds and other things like radius, then there must be a list of them with the coordinates, since some shapes are identical.

                                Comment

                                • mmu
                                  Member
                                  • Aug 2019
                                  • 28
                                  • France

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

                                  For some reason Boardviewer complains it doesn't have Mono despite mono-complete being installed…

                                  Comment

                                  • mon2
                                    Badcaps Legend
                                    • Dec 2019
                                    • 13908
                                    • Canada

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

                                    @mmu, try this Boardviewer:

                                    https://we.tl/t-Gs3ZMzhbWY

                                    Comment

                                    • SMDFlea
                                      Super Moderator
                                      • Jan 2018
                                      • 20504
                                      • UK

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

                                      It is in dot net. Theres a good app for windows called dotPEEK that might help to decompile part of it
                                      Attached Files
                                      All donations to badcaps are welcome, click on this link to donate. Thanks to all supporters

                                      Comment

                                      • mmu
                                        Member
                                        • Aug 2019
                                        • 28
                                        • France

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

                                        Originally posted by mon2
                                        @mmu, try this Boardviewer:

                                        https://we.tl/t-Gs3ZMzhbWY
                                        Thanks, this one runs, but doesn't help much.
                                        The decompiled version doesn't have much info, just tons of hex :-)

                                        Comment

                                        Related Topics

                                        Collapse

                                        • 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
                                        • Zentech
                                          Unable to Write Bios File to SOCIC 25Q128FVPQ Chip
                                          by Zentech
                                          bios chip: 25Q128FVPQ
                                          MB SN: 6050A2822301-MB-A01
                                          when I first got this laptop the bios was locked, I unsoldered and unlocked the bios. the problem is that I lifted a couple of pads from the MB. So I couldn't use the WSON chip that comes with the board, so I got an equivalent bios chip SOCIC 8pin. The problem is that I'm trying to write the file (original) to the chip and it will not program it. I'm using NeoProgrammer.
                                          Here's the error
                                          Code:
                                          Current programmer: CH341
                                          15:29:00
                                          Programming memory(verifying)...
                                          Verification error on address: 00133000
                                          ...
                                          03-10-2022, 02:39 PM
                                        • hazem3636
                                          need Bios Bin file Dell server 220
                                          by hazem3636
                                          hi everyone

                                          i need dump file for dell server r220
                                          i have download Flash BIOS executable file but i dont know how to conver it to Bin file

                                          i have check on youtube there is some programs are doing this method of creating Bin file from ExE file .


                                          if anyone has this method please need his supporting .

                                          all the best

                                          EXE file is attched and Original Bin file from the Bios Chip is attached also

                                          and dell website "https://www.dell.com/support/home/en-us/drivers/driversdetails?driverid=mrxv...
                                          11-05-2022, 06:20 AM
                                        • traxformania
                                          TONGFANG "GM7TG7P" Bios Password Problem?
                                          by traxformania
                                          Hello,

                                          I'm using TONGFANG "GM7TG7P" model laptop for over 3 years and i'm entering the same bios administrator password everyday. My laptop has Aptio BIOS (American Megatrends, AMI).

                                          But today it's not accepting my password. I'm %100 sure i'm entering the correct password.

                                          I'm trying to reset my bios without success.

                                          I tried :

                                          -I removed the BIOS battery and main battery. Waited for a long time but it didn't work. They already stated in the user manual that the password will not be reset even if the batteries...
                                          11-15-2023, 07:32 AM
                                        • Loading...
                                        • No more items.
                                        Working...