Go to Post I see people show up to a competition with their masterpiece, and proud of it. They are inspired by what they have accomplished. To make it onto the field is a high-it is the culmination of the thousands of hours of dedication compromises and commitment. They feel on top of the world. That's FIRST. - fox46 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 04-11-2005, 09:23
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
.BIN format

I heard a rumor that the .BIN files containing the master proc code are encrypted. Does anybody have any information about these at all?

Is the decryption performed by the bootloader or IFILoader?
__________________
1139 Alumni

Last edited by Rickertsen2 : 04-11-2005 at 10:06.
  #2   Spotlight this post!  
Unread 04-11-2005, 14:08
fowlerm's Avatar
fowlerm fowlerm is offline
Bringing .NET to Robots
AKA: Matthew Fowler
FRC #0312 (Heatwave); FRC #1369 (Minotaur)
Team Role: Engineer
 
Join Date: Apr 2005
Rookie Year: 2001
Location: St. Petersburg, FL, USA
Posts: 78
fowlerm has a spectacular aura aboutfowlerm has a spectacular aura aboutfowlerm has a spectacular aura about
Re: .BIN format

It isn't a rumor - the master firmware (.bin) files are just encrypted .hex files. The bin files are decrypted by IFI loader and then downloaded to the controller.
  #3   Spotlight this post!  
Unread 04-11-2005, 19:43
Pat Fairbank's Avatar
Pat Fairbank Pat Fairbank is offline
Circuit Breaker
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2001
Location: San Jose, CA
Posts: 2,132
Pat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond repute
Send a message via MSN to Pat Fairbank
Re: .BIN format

Quote:
Originally Posted by fowlerm
It isn't a rumor - the master firmware (.bin) files are just encrypted .hex files. The bin files are decrypted by IFI loader and then downloaded to the controller.
I'm not at all surprised if they are - if they weren't encrypted, it would be a simple matter of disassembling and reverse-engineering them, and then you could change the code to ignore the "disable" signal or something else equally dangerous and un-GP...

...Not that I wouldn't be extremely curious to know exactly what goes on in the master processor, of course.
__________________
Patrick Fairbank
Team 254 | Mentor (2012-)
Team 1503 | Mentor (2007-2011)
Team 296 | Alumnus (2001-2004) | Mentor (2005-2006)

patfairbank.com
  #4   Spotlight this post!  
Unread 04-11-2005, 23:58
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
Re: .BIN format

Quote:
Originally Posted by Pat Fairbank
...Not that I wouldn't be extremely curious to know exactly what goes on in the master processor, of course.
Hence why i am reverse engineering it. Partially out of curiousty, partially as a challenge and partially to learn about disassembling and revernse engineering software. After thorough review i have decided that the PIC code protection scheem is pretty solid, so there is no hope of schnarfing the code directly off the pic through any method, So i am left with decrypting the bin files. Now, if the decryption is performed by IFILoader then all i need to do is sniff the serial port while uploading master code and then write a simple program to generate a hex file from the intercepted traffic. Now if the decryption is done by the bootloader on the master proc itself, then things are ALOT more difficult. I am assuming whatever encryption they are using its probably pretty secure.
__________________
1139 Alumni
  #5   Spotlight this post!  
Unread 05-11-2005, 00:53
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: .BIN format

Is it known for sure the IFI Loader does the decrypting? I'd figure they'd do it in the bootloader if only to prevent the sniffing. If so, you'll need to work on cracking the encryption.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #6   Spotlight this post!  
Unread 05-11-2005, 01:49
sciguy125 sciguy125 is offline
Electrical Engineer
AKA: Phil Baltar
FRC #1351
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Sunnyvale, CA
Posts: 519
sciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond repute
Send a message via AIM to sciguy125 Send a message via MSN to sciguy125 Send a message via Yahoo to sciguy125
Re: .BIN format

Quote:
Originally Posted by Matt Krass
I'd figure they'd do it in the bootloader if only to prevent the sniffing.
I doubt it. Mainly because of how much energy it takes to decrypt something. A PC can do it easily. A microcontroller that isn't really designed for that kind of thing will have some trouble. The other issue is that for stronger encryption, you'd need to work with the entire file. Single byte encryption (or even a few bytes for that matter) wouldn't be that great. So, the entire file would have to be sent to the controller before it starts decrypting it. However, after decrypting the bin file, it'd be simple to impliment some kind of encoding to send it to the bootloader.
__________________

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GE/S/P a-- e y-- r-- s:++ d+ h! X+++
t++ C+ P+ L++ E W++ w M-- V? PS+ PE+
5- R-- tv+ b+ DI+++ D- G
------END GEEK CODE BLOCK------
  #7   Spotlight this post!  
Unread 05-11-2005, 07:22
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
Re: .BIN format

Some microchip reference encryption libraries:

AN953 - Data Encryption Routines for PIC18 Microcontrollers

These look pretty secure to me and i'm guessing they are using something similar. I guess i will find out once i do some sniffing.
__________________
1139 Alumni
  #8   Spotlight this post!  
Unread 10-11-2005, 19:10
skrew-ball skrew-ball is offline
Registered User
None #0975
 
Join Date: Nov 2005
Location: Richmond, VA.
Posts: 10
skrew-ball will become famous soon enough
Re: .BIN format

This may seem off subject, but I have looked into emulators and ROMs and the file extensions for ROMs are .BIN and I tried looking at them to edit them for my own use, but they are encrypted. Now I don't have any software related to robots yet, but they probably are by my assumption.

Does anyone know where I can get help/mentor to help me get started on the programming portion of a robot? thanks
  #9   Spotlight this post!  
Unread 24-11-2005, 23:22
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: .BIN format

They're encrypted? I just figured they were memory dumps instead of Intel Hex.
Code:
000800 00 EC 1C F0 D9 EC 04 F0 EB EC 04 F0 F4 EC 04 F0
000810 3B EC 1C F0 04 00 10 EC 04 F0 0A EF 04 F0 FF 00
000820 F2 B2 19 EC 04 F0 9E B6 24 EC 04 F0 F2 B0 F2 90
000830 12 00 F2 92 82 82 20 0E 45 6E 20 0E D9 6E 00 0E
I spent some time attempting to disassemble it and figure it out. I've attached a PHP file I used to translate from this "dump" format to hex. (Note that it includes a bug in calculating checksums which I never solved.) It acts as a "filter"; it translates from STDIN to STDOUT.

After that, I used a modified version of picdis18 (removed checksum checks) to convert it to assembly. I didn't get much farther than this, because I don't know ASM18.

If you were to spy as IFI Loader downloaded the "firmware", I think what would actually be downloaded is to the user proc that loads the firmware proper onto the master proc.

If anyone gets farther on this, I'd love to know.
Attached Files
File Type: txt bin2hex.php.txt (1.9 KB, 44 views)
  #10   Spotlight this post!  
Unread 24-11-2005, 23:44
fowlerm's Avatar
fowlerm fowlerm is offline
Bringing .NET to Robots
AKA: Matthew Fowler
FRC #0312 (Heatwave); FRC #1369 (Minotaur)
Team Role: Engineer
 
Join Date: Apr 2005
Rookie Year: 2001
Location: St. Petersburg, FL, USA
Posts: 78
fowlerm has a spectacular aura aboutfowlerm has a spectacular aura aboutfowlerm has a spectacular aura about
Re: .BIN format

If you have looked at the Microchip AN851 app note, the .mcp files that are generated when you open a .hex file are the in the same format as the .bin files used by IFI Loader.
  #11   Spotlight this post!  
Unread 04-01-2006, 12:22
Takumi Takumi is offline
Speaker of PBASIC
AKA: Takumi Disamorado
FRC #0486 (Positronic Panthers)
Team Role: Programmer
 
Join Date: Dec 2005
Rookie Year: 2005
Location: Wallingford, PA
Posts: 10
Takumi is on a distinguished road
Send a message via AIM to Takumi Send a message via MSN to Takumi
Re: .BIN format (in relation to ROMS and programming

Quote:
Originally Posted by skrew-ball
This may seem off subject, but I have looked into emulators and ROMs and the file extensions for ROMs are .BIN and I tried looking at them to edit them for my own use, but they are encrypted. Now I don't have any software related to robots yet, but they probably are by my assumption.

Does anyone know where I can get help/mentor to help me get started on the programming portion of a robot? thanks
1. .bin, to the best of my knowledge, are used by other apps for information storage. They aren't opened independently. When you dl an emu or ROM, more often than not they come with .cue files that dictate burning locations should you decide to store it on an external drive (Fable:TLC torrents... )

2. Get started in your local team. If you've taken a language class before, you're well ahead in the game. Just remember that some languages react diferrently than others. If your team's been around, they may have some spare stamps for you to fool around with and learn the basics of syntax and . Ex: Our team has some old PBASIC stamps that we use for fundraiser robots. I used BOE-Bots before, so I'm the official PBASIC programmer for the team, however useless my job is. Modding a VEXbot from FVC for use with MPLAB is a good way to start, if your team has the cash, as the FRCbots use the very same language, C. You can always salvage parts from old bots for use in a minibot that gives practice in auto mode.
And we all know that eC isn't 1337
__________________
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
inventor to 3D faces format Ken Ginger Inventor 0 27-12-2004 20:19
Standardized Scouting System/File Format phrontist General Forum 15 18-04-2004 17:05
Conversion from Inventor format to .dxf bheller Inventor 0 17-03-2003 12:48
Need Intel Logo in EPS or AI format activemx Computer Graphics 3 04-03-2003 17:34
practice round format? Gary Dillard Rules/Strategy 1 27-01-2003 07:53


All times are GMT -5. The time now is 16:36.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi