Author Topic: Hazers Final Rapidfire (RS232) source code  (Read 29744 times)

Offline Hazer

  • x4675636B4E7574
  • Acidmods Alumni
  • Acid Modder
  • *
  • Posts: 583
  • Post quality +59/-0
Hazers Final Rapidfire (RS232) source code
« on: May 01, 2012, 03:56:53 PM »
Here is the asm files for now. I will add the schematics, eagle files, and VC++ files when I find them. Also, this is actually FLEX with the RS232 part commented out.
.mediafire.com/?bi4a3pbulbycfj9[/url]


New files:

http://www.mediafire.com/?ps78nu4wcq8r8sq

install pdf: 
http://www.mediafire.com/view/?zwaztwmmjmd


I apologize. I have been having trouble finding the original files. I had to rewrite what I did have and then compile each to get rid of the errors. What is included in the above link is the asm files for the Final Rapidfire and the Flex asm files. I have also included the Eagle files. What I am now (permanently) missing is the VB files for the utility. I have searched old HDD, old burned backup disks, and even scoured my thumbdrives looking for the files with no luck. I am going to call the VB files a loss at this point. Besides, RS232 was such a hastle especially when I plan to release everything about the USB stuff (so much nicer and easier).

« Last Edit: May 22, 2012, 06:21:16 PM by Hazer »
[Quote from Gamermodz via Viking forums]
Don't be jealous your not half as smart. I hate ****tards like you. An ignorant redneck. Your nothing but a posing ******. Get the **** out of here, really, your claim to fame is an open source rapid fire code? You make me laugh. You think you have control over the modding market?  You couldn't create what I can and do. You are too ignorant with your outrageous assumptions and accusations. [/Quote]

Offline drummerdude

  • BST BAN
  • ♥ Poker Champ ♠♣
  • *
  • Posts: 237
  • Post quality +11/-5
  • Gender: Male
  • Acidmods User
Re: Hazers Final Rapidfire (RS232) source code
« Reply #1 on: May 01, 2012, 05:15:05 PM »
You are the man! I cant wait to make this! Thanks Hazer

"I'm not a very tall person, however I show self-confidence of a bigger person"

Offline magic_man185

  • Who Farted ???
  • *
  • Posts: 229
  • Post quality +16/-0
  • Gender: Male
  • Acidmods User
Re: Hazers Final Rapidfire (RS232) source code
« Reply #2 on: May 02, 2012, 06:09:07 AM »
Hazer, thanks so much for this.  I have been working on writing code like this for a long time, as some people on here know, but had some problems that I haven't had time to work around.  I look forward to working with this code, and figuring out where mine went wrong.  I might also try to add some mode saving capability to the programming application.

Edit: I just looked at the source code.  LMAO!! Did you get a little frustrated when working with the LED code? I can tell from the labels.  When I was trying to do the same LED code in my program, I was having an issue with both LEDs lighting up when only one should have been, were you having this problem when you first created the code?

Also, flex uses a different LED scheme than this does, correct? You used two LEDs on a single pin with the Final Rapidfire so there is room for the send and receive pins.
« Last Edit: May 02, 2012, 06:30:29 AM by magic_man185 »

Offline hyper999

  • Acidmods Alumni
  • Millennium Poster
  • *
  • Posts: 1158
  • Post quality +544/-3
  • Research and Development
Re: Hazers Final Rapidfire (RS232) source code
« Reply #3 on: May 03, 2012, 01:59:07 PM »
OMG OMG OMG OMG OMG OMG

Offline masterkush

  • Guppy
  • *
  • Posts: 8
  • Post quality +0/-0
  • Gender: Male
  • Acidmods User
Re: Hazers Final Rapidfire (RS232) source code
« Reply #4 on: May 08, 2012, 01:02:00 PM »
you can call me a dumb :censored: but whats the diff between the flex RF and this code?

Offline magic_man185

  • Who Farted ???
  • *
  • Posts: 229
  • Post quality +16/-0
  • Gender: Male
  • Acidmods User
Re: Hazers Final Rapidfire (RS232) source code
« Reply #5 on: May 08, 2012, 01:04:22 PM »
This code has RS232 connectivity that lets you connect the controller to a computer to change the speeds on the fly.

Offline Hazer

  • x4675636B4E7574
  • Acidmods Alumni
  • Acid Modder
  • *
  • Posts: 583
  • Post quality +59/-0
Re: Hazers Final Rapidfire (RS232) source code
« Reply #6 on: May 10, 2012, 06:19:29 PM »
Quote
you can call me a dumb :censored: but whats the diff between the flex RF and this code?

This is why

Final Rapidfire Controller X360
[Quote from Gamermodz via Viking forums]
Don't be jealous your not half as smart. I hate ****tards like you. An ignorant redneck. Your nothing but a posing ******. Get the **** out of here, really, your claim to fame is an open source rapid fire code? You make me laugh. You think you have control over the modding market?  You couldn't create what I can and do. You are too ignorant with your outrageous assumptions and accusations. [/Quote]

Offline rafaliyo86

  • Acid Modder
  • *
  • Posts: 569
  • Post quality +12/-1
  • Gender: Male
  • Acidmods User
Re: Hazers Final Rapidfire (RS232) source code
« Reply #7 on: May 15, 2012, 06:25:21 AM »
I will wait for the schematic to test it

Thanks Hazer you are the  :#1:

Offline Modded Matt

  • Site Owner
  • Administrator
  • Around the block
  • *
  • Posts: 4649
  • Post quality +65/-3
  • Gender: Male
Re: Hazers Final Rapidfire (RS232) source code
« Reply #8 on: May 19, 2012, 04:32:48 PM »
use flex images

read through the code and you will find:


;************Pin names*********************
LEDL              equ      5
LEDR      equ      4
PINRECV      equ      3
BUTTONR      equ      2
TRIGGERL           equ      1
TRIGGERR     equ      0


then reference the data sheet:

pin1 - vdd
pin2 - ledL
pin3 - LEDR
pin4 - REC
pin5 - buttonR
pin6 - triggerL
pin7 - triggerR
pin8 - gnd
« Last Edit: May 19, 2012, 04:41:21 PM by Modded Matt »

Offline 3lite117

  • Chief squatting Hard
  • *
  • Posts: 19
  • Post quality +1/-0
  • Acidmods User
Re: Hazers Final Rapidfire (RS232) source code
« Reply #9 on: May 21, 2012, 05:49:52 AM »
Well I cant wait to have a go at installing this one! Ive pretty much made all of the Codes on this sight im always after another install chellenge, as Ill leave the code writing up to the experts! However I can pretty much install anything and this looks like fun  :hifive:

Is the Hex or list of whats needed been dropped yet?

Offline Modded Matt

  • Site Owner
  • Administrator
  • Around the block
  • *
  • Posts: 4649
  • Post quality +65/-3
  • Gender: Male
Re: Hazers Final Rapidfire (RS232) source code
« Reply #10 on: May 21, 2012, 06:17:07 AM »
THis is the flex code with the usb conectivity added.

What has been posted here is the ASM files for the code. Using the ASM you could build upon or modify this code. OR you can take the ASM open it in MPLAB and recompile it. MPLAB would then spit out the hex file to be wrote to your chip.

The only other components you would need would be the usb or 3.5mm port/jack.

To my knowledge, hazer has not released the pc utility for this mod yet. So this is just another form of flex until he does.

Offline Phantom

  • Club AM VIP
  • Granny Spanker
  • *
  • Posts: 355
  • Post quality +11/-1
  • Gender: Male
Re: Hazers Final Rapidfire (RS232) source code
« Reply #11 on: May 22, 2012, 02:25:02 AM »
I think it connects to the serial port on your PC not USB.

I am trying to build the HEX in MPLAB, but I keep getting 'BUILD FAILED' ive tried different file paths and it still fails.  Does anyone want to give it a try and post up the HEX file?



Offline SethMods

  • Registered BST
  • King of the Wii-tards
  • *
  • Posts: 189
  • Post quality +17/-1
  • Gender: Male
  • Acidmods User
Re: Hazers Final Rapidfire (RS232) source code
« Reply #12 on: May 22, 2012, 06:08:49 AM »
I think it connects to the serial port on your PC not USB.

I am trying to build the HEX in MPLAB, but I keep getting 'BUILD FAILED' ive tried different file paths and it still fails.  Does anyone want to give it a try and post up the HEX file?

Phantomz0 is right. The Matrix compiles fine. The CG2 does not though.

Lines 1011-1040 are the subroutines in the CG2 code. They seem to be commented out so that every call to those routines fails.


Now the CG2Final.asm compiles. But there is a FlexCG2.asm in there as well that does not. Is it needed?
« Last Edit: May 23, 2012, 08:30:42 AM by SethMods »

Offline magic_man185

  • Who Farted ???
  • *
  • Posts: 229
  • Post quality +16/-0
  • Gender: Male
  • Acidmods User
Re: Hazers Final Rapidfire (RS232) source code
« Reply #13 on: May 22, 2012, 06:35:06 AM »
Hazer,

I thought that you did a single pin for both LEDs with the Final Rapidfire code, so that you had a transmit and receive pin for the RS232.  Am I mistaken?

Offline Modded Matt

  • Site Owner
  • Administrator
  • Around the block
  • *
  • Posts: 4649
  • Post quality +65/-3
  • Gender: Male
Re: Hazers Final Rapidfire (RS232) source code
« Reply #14 on: May 22, 2012, 09:55:45 AM »
I was also wondering how the send and recieve was handled, but reading the ASM it is clear only one pin was used for programing and two pins were used for leds.

Offline hyper999

  • Acidmods Alumni
  • Millennium Poster
  • *
  • Posts: 1158
  • Post quality +544/-3
  • Research and Development
Re: Hazers Final Rapidfire (RS232) source code
« Reply #15 on: May 22, 2012, 10:55:25 AM »
The PC utillity can be found here http://www.mediafire.com/?jzmzo0onb13




I was also wondering how the send and recieve was handled, but reading the ASM it is clear only one pin was used for programing and two pins were used for leds.

The labels in the ASM are wrong the correct pin out is-

1. Vdd
2. LED control pin (goes to the middle of the two series LEDs)
3. Serial Tx
4. Serial Rx
5. Mode Switch (active low)
6. Left trigger
7. Right trigger
8. GND

The best way to use this mod is with a cheapo usb serial converter like this,

http://www.ebay.co.uk/itm/USB-2-0-RS232-SERIAL-DB9-DB-9-PIN-ADAPTER-CONVERTER-CABLE-LEAD-GPS-PDA-PC-/160691781845?pt=UK_Computing_TV_Tuner_Video_Capture_Devices&hash=item2569fa00d5#ht_1694wt_1189

Also a voltage divider should be put on the Rx Pin to step down the >3 voltages from the serial ports.

Offline magic_man185

  • Who Farted ???
  • *
  • Posts: 229
  • Post quality +16/-0
  • Gender: Male
  • Acidmods User
Re: Hazers Final Rapidfire (RS232) source code
« Reply #16 on: May 22, 2012, 02:07:44 PM »
Thanks Hyper, that is what I thought.

Offline Hazer

  • x4675636B4E7574
  • Acidmods Alumni
  • Acid Modder
  • *
  • Posts: 583
  • Post quality +59/-0
Re: Hazers Final Rapidfire (RS232) source code
« Reply #17 on: May 22, 2012, 06:21:42 PM »
*BUMP* files fixed read OP above.
[Quote from Gamermodz via Viking forums]
Don't be jealous your not half as smart. I hate ****tards like you. An ignorant redneck. Your nothing but a posing ******. Get the **** out of here, really, your claim to fame is an open source rapid fire code? You make me laugh. You think you have control over the modding market?  You couldn't create what I can and do. You are too ignorant with your outrageous assumptions and accusations. [/Quote]

Offline magic_man185

  • Who Farted ???
  • *
  • Posts: 229
  • Post quality +16/-0
  • Gender: Male
  • Acidmods User
Re: Hazers Final Rapidfire (RS232) source code
« Reply #18 on: May 22, 2012, 06:41:49 PM »
Here is the asm files for now. I will add the schematics, eagle files, and VC++ files when I find them. Also, this is actually FLEX with the RS232 part commented out.
.mediafire.com/?bi4a3pbulbycfj9[/url]


New files:

http://www.mediafire.com/?ps78nu4wcq8r8sq

install pdf: 
http://www.mediafire.com/view/?zwaztwmmjmd


I apologize. I have been having trouble finding the original files. I had to rewrite what I did have and then compile each to get rid of the errors. What is included in the above link is the asm files for the Final Rapidfire and the Flex asm files. I have also included the Eagle files. What I am now (permanently) missing is the VB files for the utility. I have searched old HDD, old burned backup disks, and even scoured my thumbdrives looking for the files with no luck. I am going to call the VB files a loss at this point. Besides, RS232 was such a hastle especially when I plan to release everything about the USB stuff (so much nicer and easier).

Hazer,

I still have the project files from my RS232 program, written in visual basic.  I never completed it, but it is most of the way done.  I could put the finishing touches on the program and release it if anyone is interested.  I would just need someone to test it, because I don't intend to create a controller with a RS232 interface (working on USB).

Offline txchevyz71

  • Guppy
  • *
  • Posts: 2
  • Post quality +0/-0
  • Gender: Male
  • Acidmods User
Re: Hazers Final Rapidfire (RS232) source code
« Reply #19 on: June 05, 2012, 02:06:04 PM »
Hey Everyone,

I have been lurking for quite some time. I have some questions on the final rapidfire. Please forgive my ignorance.

But for this install, does anyone have a part number for the multi-color LED that was used? Also for the 3.5mm jack?



Thanks.

Txchevyz71

Offline drummerdude

  • BST BAN
  • ♥ Poker Champ ♠♣
  • *
  • Posts: 237
  • Post quality +11/-5
  • Gender: Male
  • Acidmods User
Re: Hazers Final Rapidfire (RS232) source code
« Reply #20 on: June 05, 2012, 02:55:32 PM »
You can use a bi-color led if you want, but the one that was used in Hazer's kit is actually 2 leds glued together. You can use any 3.5mm audio jack like this http://www.radioshack.com/product/index.jsp?productId=2103452
Hazer's install guide calls for a custom pcb, I plan to write up an install to make this without a pcb as soon as i get my parts from china. Also, it doesn't demonstrate how to create a programming cable, but when i make my install guide, i'll cover that too.

"I'm not a very tall person, however I show self-confidence of a bigger person"

Offline txchevyz71

  • Guppy
  • *
  • Posts: 2
  • Post quality +0/-0
  • Gender: Male
  • Acidmods User
Re: Hazers Final Rapidfire (RS232) source code
« Reply #21 on: June 05, 2012, 05:22:08 PM »
I have been making all of my mods on boards like this http://www.digikey.com/product-detail/en/9081/9081CA-ND/151975

With the soic version of the 12F683  I have been able to install it in the middle of the controller with no issues

Offline magic_man185

  • Who Farted ???
  • *
  • Posts: 229
  • Post quality +16/-0
  • Gender: Male
  • Acidmods User
Re: Hazers Final Rapidfire (RS232) source code
« Reply #22 on: June 05, 2012, 09:45:39 PM »
You can use a bi-color led if you want, but the one that was used in Hazer's kit is actually 2 leds glued together. You can use any 3.5mm audio jack like this http://www.radioshack.com/product/index.jsp?productId=2103452
Hazer's install guide calls for a custom pcb, I plan to write up an install to make this without a pcb as soon as i get my parts from china. Also, it doesn't demonstrate how to create a programming cable, but when i make my install guide, i'll cover that too.
Actually you can't use a bi-color led. A bi- color led, at least all that I have ever seen, shares either anode or cathode between both leds. To control both leds with a single pin, you have to connect the pin to anode of one led and cathode of the other, so that you drive the pin high to light one led and drive the pin low to light the other.

Offline drummerdude

  • BST BAN
  • ♥ Poker Champ ♠♣
  • *
  • Posts: 237
  • Post quality +11/-5
  • Gender: Male
  • Acidmods User
Re: Hazers Final Rapidfire (RS232) source code
« Reply #23 on: June 06, 2012, 03:34:28 AM »
Actually you can't use a bi-color led. A bi- color led, at least all that I have ever seen, shares either anode or cathode between both leds. To control both leds with a single pin, you have to connect the pin to anode of one led and cathode of the other, so that you drive the pin high to light one led and drive the pin low to light the other.
my bad. you're right

"I'm not a very tall person, however I show self-confidence of a bigger person"

Offline Phantom

  • Club AM VIP
  • Granny Spanker
  • *
  • Posts: 355
  • Post quality +11/-1
  • Gender: Male
Re: Hazers Final Rapidfire (RS232) source code
« Reply #24 on: June 08, 2012, 08:51:44 PM »
Im having trouble getting this to work, I think its the LED's thats the problem. Should they look like this?



with the green wire going to a 100ohm resistor then pin 2?

Offline hyper999

  • Acidmods Alumni
  • Millennium Poster
  • *
  • Posts: 1158
  • Post quality +544/-3
  • Research and Development
Re: Hazers Final Rapidfire (RS232) source code
« Reply #25 on: June 09, 2012, 04:24:24 AM »
Im having trouble getting this to work, I think its the LED's thats the problem. Should they look like this?



with the green wire going to a 100ohm resistor then pin 2?

Yes that is correct

Offline Phantom

  • Club AM VIP
  • Granny Spanker
  • *
  • Posts: 355
  • Post quality +11/-1
  • Gender: Male
Re: Hazers Final Rapidfire (RS232) source code
« Reply #26 on: June 10, 2012, 12:24:44 AM »
ahh I have the rapidfire working now..

only problem now is the serial jack, this is the one im using http://www.farnell.com/datasheets/41016.pdf which pins should be tx/rx?

I just get an error when I try to send the config

Ive ordered a usb to serial converter, so that might sort it out.

Here are some pics of the serial jack placement






Offline snowcolt17

  • Local Moderator
  • Acid Modder
  • *
  • Posts: 552
  • Post quality +16/-1
  • Gender: Male
  • If all else fails, reflow it
Re: Hazers Final Rapidfire (RS232) source code
« Reply #27 on: June 10, 2012, 02:44:32 AM »
that looks sweet.... be cool if this worked on wired controllers.


Offline hyper999

  • Acidmods Alumni
  • Millennium Poster
  • *
  • Posts: 1158
  • Post quality +544/-3
  • Research and Development
Re: Hazers Final Rapidfire (RS232) source code
« Reply #28 on: June 10, 2012, 03:27:16 AM »
ahh I have the rapidfire working now..

only problem now is the serial jack, this is the one im using http://www.farnell.com/datasheets/41016.pdf which pins should be tx/rx?

I just get an error when I try to send the config

Ive ordered a usb to serial converter, so that might sort it out.

Here are some pics of the serial jack placement


What are you currently using to program it(e.g desktop PC serial port, laptop serial port)? and what error do you get?

I don't think it really matters how the jack is wired as long as the cable matches, I think (not 100% sure) hazer's were wired like this

« Last Edit: June 10, 2012, 03:28:15 AM by hyper999 »

Offline Phantom

  • Club AM VIP
  • Granny Spanker
  • *
  • Posts: 355
  • Post quality +11/-1
  • Gender: Male
Re: Hazers Final Rapidfire (RS232) source code
« Reply #29 on: June 10, 2012, 05:37:15 AM »
Im using a desktop PC I can only see the 'communications port (COM1)' in device manager which i assume is the serial port, it tests OK in the app. Hazers app says 'programing fail Read Timeout.' press ok 'programming failed check connections or port'

The cable I was using didnt match the above pinout, so I rewired it to match, but I still get the same error.

 

SMF spam blocked by CleanTalk
SimplePortal 2.3.5 © 2008-2012, SimplePortal