camerahacking Forum Index  
 FAQ  •  Search  •  Memberlist  •  Usergroups   •   fChat   •  Register  •  Profile  •  Log in to check your private messages  •  Log in
 USP patch - utility to change FPS, timelimits, frame size View next topic
View previous topic
Post new topicReply to topic
Author Message
GWRedDragon



Joined: 06 Aug 2005
Posts: 233
Location: Arlington, VA

PostPosted: Wed Aug 24, 2005 7:45 am Reply with quoteBack to top

1) Download from http://osf1.gmu.edu/~rmansfi2/usppatch/
2) Extract usppatch.exe to some directory
3) Using Ops, download USP.BIN from your camera to the same directory as usppatch.exe
4) Run usppatch.exe
5) Using Ops, upload the new USP.BIN.patched file over your camera's USP.BIN
6) **IMPORTANT:** Click powerdown camcorder
7) Enjoy!


Last edited by GWRedDragon on Thu Aug 25, 2005 6:09 pm; edited 7 times in total
View user's profileSend private message
hevnsnt



Joined: 21 Jun 2005
Posts: 58

PostPosted: Wed Aug 24, 2005 1:00 pm Reply with quoteBack to top

Very Happy sweet! Thanks@

_________________
http://www.i-hacked.com
View user's profileSend private message
carpespasm



Joined: 05 Aug 2005
Posts: 1554
Location: jacksonville, fl

PostPosted: Wed Aug 24, 2005 1:08 pm Reply with quoteBack to top

very nice! so much easier not having to worry about messing up a field in a hex editor

_________________
rat shack, you've got questions, we've got blank stares.... and cell phones.
View user's profileSend private messageAIM Address
Thor



Joined: 06 Aug 2005
Posts: 19

PostPosted: Wed Aug 24, 2005 2:38 pm Reply with quoteBack to top

Excellent, sure beats mucking around in the hex editor.
View user's profileSend private message
GWRedDragon



Joined: 06 Aug 2005
Posts: 233
Location: Arlington, VA

PostPosted: Wed Aug 24, 2005 4:34 pm Reply with quoteBack to top

Released version 0.2:

-Created a new serial number option that sets the serial number to a string that describes the settings in the file. For instance, the default camera settings generate this string:

320x240 30f 25hl

Which means the resolution is 320x240, it records at 30 frames per second, and the hard limit is 25 minutes. The soft limit, of course, can be seen at the normal idle screen.

The idea of this feature is to allow you to easily check your camera settings without hooking it up to the PC, downloading your USP file or a video, etc. All you have to do to know what resolution and such you set is to start the camera up with the nerve pinch.

-Included readme with the same instructions that are at the top of this thread
-Included source code. Should easily compile in any C++ compiler on any platform, but assumes a little endian machine. Not that that should be a big deal.
View user's profileSend private message
radarman



Joined: 01 Jul 2005
Posts: 1542
Location: is everything

PostPosted: Wed Aug 24, 2005 4:36 pm Reply with quoteBack to top

Hey, that's a pretty good idea! (much more useful than a generic vanity serial)

BTW - your program seems to crash if you attempt to start it without a file. Not a big deal, but it might be worth trapping.
View user's profileSend private messageVisit poster's website
Maxwell Smart



Joined: 07 Aug 2005
Posts: 282

PostPosted: Wed Aug 24, 2005 4:37 pm Reply with quoteBack to top

Great! You should make an option

"Would you to replace the challenge/response key with 0's?"

Anyway, excellent work!
View user's profileSend private message
qodsec



Joined: 13 Aug 2005
Posts: 49

PostPosted: Wed Aug 24, 2005 7:41 pm Reply with quoteBack to top

great app. Thanks
View user's profileSend private message
FruitCake



Joined: 12 Jul 2005
Posts: 8
Location: Los Angeles, CA

PostPosted: Wed Aug 24, 2005 11:03 pm Reply with quoteBack to top

very nicely done
View user's profileSend private message
camerabuser



Joined: 14 Aug 2005
Posts: 36

PostPosted: Wed Aug 24, 2005 11:03 pm Reply with quoteBack to top

GWRedDragon wrote:

-Included source code. Should easily compile in any C++ compiler on any platform, but assumes a little endian machine. Not that that should be a big deal.


It is a big deal. There are lots of Macs. Sales figures are misleading
because Mac users don't often buy new computers. (less spyware,
fewer gamers...)

At least mark the places in the code that need fixing. You could do this
with do-nothing macros, like so:

#define CPU_TO_LE32(x) (x)
#define LE32_TO_CPU(x) (x)
#define CPU_TO_LE16(x) (x)
#define LE16_TO_CPU(x) (x)

Then I just need to change the definitions and I'm all set.
View user's profileSend private message
BillW



Joined: 14 Apr 2005
Posts: 2519
Location: in a tightly curled dimension

PostPosted: Wed Aug 24, 2005 11:53 pm Reply with quoteBack to top

Or you could do it yourself and submit the patch to GWRedDragon. That's the beauty of having access to the source.

I haven't looked at the source, but it should be pretty easy to identify - basically look for any code that converts character strings into short ints (or equivalent), and visa versa. There won't be a lot of them.
View user's profileSend private messageVisit poster's website
camerabuser



Joined: 14 Aug 2005
Posts: 36

PostPosted: Thu Aug 25, 2005 12:06 am Reply with quoteBack to top

BillW wrote:
Or you could do it yourself and submit the patch to GWRedDragon. That's the beauty of having access to the source.


I sure know this, which is why I only really begged to have the spots
marked right. I can add the byte swapping code myself.

BillW wrote:

I haven't looked at the source, but it should be pretty easy to identify - basically look for any code that converts character strings into short ints (or equivalent), and visa versa. There won't be a lot of them.


Depending on the camera, some might not need conversion. I guess I
can assume that the USB protocol itself is little-endian, but I don't know
if it still is after it passes through the chipset, OS, and libusb.
View user's profileSend private message
BillW



Joined: 14 Apr 2005
Posts: 2519
Location: in a tightly curled dimension

PostPosted: Thu Aug 25, 2005 12:38 am Reply with quoteBack to top

I took a quick look at GWRedDragon's source. The only endian specific code I see is...

Code:

//Make a descriptive serial number
string camid;
camid.clear();
camid+=tos(*((unsigned short *)(&buffer[0x1c8])));
camid+="x";
camid+=tos(*((unsigned short *)(&buffer[0x1ca])));


The short passed to tos may will be the wrong byte order on an endian-different machine. Using your macro scheme, this is what you want...

Code:

camid+=tos(LE16_TO_CPU(*((unsigned short *)(&buffer[0x1c8]))));
camid+="x";
camid+=tos(LE16_TO_CPU(*((unsigned short *)(&buffer[0x1ca]))));
View user's profileSend private messageVisit poster's website
GWRedDragon



Joined: 06 Aug 2005
Posts: 233
Location: Arlington, VA

PostPosted: Thu Aug 25, 2005 5:35 am Reply with quoteBack to top

Okay, I added big endian support and uploaded as 0.3. All you should have to do is comment out the line that defines "LITTLE_ENDIAN" at the top of the file.

Dang! Too late...I should have called it "FOLLOWER_OF_LILLIPUT".


Still no middle endian support Razz
View user's profileSend private message
FRAMEDNLV



Joined: 15 Aug 2005
Posts: 11
Location: LAS VEGAS

PostPosted: Thu Aug 25, 2005 3:04 pm Reply with quoteBack to top

I used the utility to make the new bin file. It seems to work but not completely. When I let it record to the maximum time it will stop recording and say ready. After I down load the movie it will not play with windows player. It will play with the divx player. When I list the properties for the movie file it doesn't have any summary listing. It is like the file was not completed properly. Does any one else have this problem? I set the clip time for less than maximum time.

Chris
View user's profileSend private messageAIM Address
LogOff



Joined: 24 Aug 2005
Posts: 8
Location: D.C.

PostPosted: Sun Aug 28, 2005 12:22 am Reply with quoteBack to top

HOLY SH*T!

Sorry for the semi-profanity but dangit. This little app just made my day. Makes me wish I remebered to stop at Radishack though to get a new soldering tip to resolder the USB cable back on.... Awesome though!
View user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
Display posts from previous:      
Post new topicReply to topic


 Jump to:   



View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum