enag, programming harness?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gtrsi
    Automag?
    • Dec 2001
    • 5786

    #16
    Even if AGD doesnt offer it, it would be nice if some of our more savy AO'ers help build a harness and compile a few different firing programs. I for one think it would be fun to have a ramping board to compete with out timmy brethren.
    FOR SALE
    on/off, sear, PROConnect
    AGD back bottle asa, laser logo

    Comment

    • athomas
      Of course it works-its AGD
      • Jan 2002
      • 8039

      #17
      The emag IC is a AT90S2313, which is an Atmel AVR.

      It can be programmed with an AVR ISP programmer from Atmel or you can build a compatible programmer yourself. There are diagrams on the internet. You will need a harness made for the pinouts from the ISP to match the pinouts from the IC.

      Next, you will need to write your own program to operate the emag since AGD does not release their code. The IC is locked so you cannot read the existing program, but you can reprogram the IC with a new program if you have one.

      Here is the pinout of the sockets on the emag board as per Have_Blue - Nov-2001.
      Except for the Automag in front, its usually the man behind the equipment that counts.

      Comment

      • MindJob

        #18
        Originally posted by gtrsi
        Even if AGD doesnt offer it, it would be nice if some of our more savy AO'ers help build a harness and compile a few different firing programs. I for one think it would be fun to have a ramping board to compete with out timmy brethren.
        I concure.

        Even though I am competant enough to build and maintain computer networks, A+ & N+ certified, I would never even attempt something like building my own, or messing around with programing.

        However, like GTRSI said, there is a nice market out here on AO of people who would be willing to BUY the nessasary equipment and software.


        Comment

        • TheAngelGuy.com
          Registered User
          • Apr 2002
          • 309

          #19
          crap....I read the title of this thread and I thought someone made a harness so I could reprogram my wife when she is running on battery power :)

          I'm sorry my post was no help at all
          Bob Sandifer
          TheAggressiveGeneration - Home of the Predator.
          .....................................
          Dalton Ga. 706.876.0085

          Comment

          • RRfireblade

            • Jun 2002
            • 5103

            #20
            FallnAngel:

            Trust me, I know of what I speak. When you have actually written code for and programmed an Emag,Atmel 2313 BTW, then perhaps my statements will be more understandable to you.

            Let me know how it goes and then we'll talk.
            Logic Paintball Forums
            My A O Feedback Here
            Other Feedback Here
            If I've Been Any help
            Please Leave Some. :)

            Comment

            • sig11
              Registered User
              • Apr 2004
              • 95

              #21
              Originally posted by athomas
              Next, you will need to write your own program to operate the emag since AGD does not release their code. The IC is locked so you cannot read the existing program, but you can reprogram the IC with a new program if you have one.
              You can read the EEPROM and the microcontroller. It won't help you much really though. :) You can still use those images to re-flash your gun after playing with your own code. I used those images to verify the initialization for the display for instance... (I was backwards : )

              I've come as far as getting the gun to fire and the display printing out my name. Then school started back up and I've had no time.

              The problem with high level languages is that compilers do not produce small code and the processor in the emag has a very limited amount of memory.

              Have to cut this short... my oven calls.

              Lee

              Comment

              • FallNAngel
                Registered User
                • Apr 2003
                • 1076

                #22
                Originally posted by RRfireblade
                Trust me, I know of what I speak. When you have actually written code for and programmed an Emag,Atmel 2313 BTW, then perhaps my statements will be more understandable to you.
                So, how is it that you programmed for a chip without a compiler? A compilers sole purpose is to translate what you have coded (in whatever language it supports) into machine code. Now how well it efficiently translates are based on a few things. 1) what language it was originally written in 2) how well the compiler was optimized for that language

                If you write the program in C, it has to break it down to assembly, then to machine code. #1 and #2 determine how well it's done in this case. If you write it in ASM, there's nothing to translate and very little to optimize. Unless you're crazy, you won't be coding the chip in machine code, you'll more than likely just learn the instruction set in ASM and use a compiler to create the machine code. That way you get what you want... very little bloat and fast code.

                Originally posted by sig11
                You can read the EEPROM and the microcontroller. It won't help you much really though. :) You can still use those images to re-flash your gun after playing with your own code. I used those images to verify the initialization for the display for instance... (I was backwards : )
                How do you figure? If the EEPROM is locked, you'll read zero's from it. You won't get an image of the chip at all. That's the whole point of having the chip locked... you *can't* read anything useful from it.
                O-Ring Kits FS: Matrix/DM4 / Freestyle / Intimidator / Shocker SFT & More!
                X-Mag F/S Clamping Feed, 3.2 Software, extra battery and more!
                Coming Soon: Smart Parts MaxFlo and Planet Eclipse EGO kits!

                Comment

                • athomas
                  Of course it works-its AGD
                  • Jan 2002
                  • 8039

                  #23
                  Originally posted by sig11
                  You can read the EEPROM and the microcontroller. ....I used those images to verify the initialization for the display for instance... (I was backwards : )

                  I've come as far as getting the gun to fire and the display printing out my name.....

                  Lee
                  What version of firmware was in your emag to start with? Ver. 1.35 wasn't locked and could be loaded into a computer in hex. Ver 1.37, unfortunately for us, was locked as far as I know. I personally haven't tried it although I do have all the gear except the connectors for the emag board.




                  BTW, does anyone have the emag board connector manufacturer/sizes/specs so I can order a couple.
                  Except for the Automag in front, its usually the man behind the equipment that counts.

                  Comment

                  • RRfireblade

                    • Jun 2002
                    • 5103

                    #24
                    First off let's keep this in context. We're not talking in general programming terms or trying to debate the benifits and requirements of a variety of languages.This is not what this thread was intended to do.We're specifically talking about the E/Xmag Atmel and it's specific set of instructions. This is done in assembly and is simply done far more efficient when 'written' directly than using a compiler.This is the primary benefit of writing to that language than some of the more 'advanced' others.If you want to smallest most efficient code possible,assembly is one of the best choices and is used in this case precisely for that purpose.

                    Beyond that, there is little else to debate in regards to the point of this thread.
                    Logic Paintball Forums
                    My A O Feedback Here
                    Other Feedback Here
                    If I've Been Any help
                    Please Leave Some. :)

                    Comment

                    • gtrsi
                      Automag?
                      • Dec 2001
                      • 5786

                      #25
                      Originally posted by MindJob
                      I concure.

                      However, like GTRSI said, there is a nice market out here on AO of people who would be willing to BUY the nessasary equipment and software.



                      Hell yea,
                      TO be honest I am suprised this thread has survived this long. Or maybe TK is waiting for more replies and then assemble the "black choppers" to take us out for "hacking" an emag.

                      Since AGD no longer makes and emag I thought it would be cool if there were a band of users that could trade and share different firing modes, neat graphic things, and scrolling text across the LED's. I understand the possible implications, however again, since the E is no longer in production I thought this would be ok.

                      gt
                      FOR SALE
                      on/off, sear, PROConnect
                      AGD back bottle asa, laser logo

                      Comment

                      • gtrsi
                        Automag?
                        • Dec 2001
                        • 5786

                        #26
                        Originally posted by TheAngelGuy.com
                        crap....I read the title of this thread and I thought someone made a harness so I could reprogram my wife when she is running on battery power :)

                        I'm sorry my post was no help at all

                        yea I just noticed that the thread title was enag instead of emag. My typing is pretty crappy.
                        FOR SALE
                        on/off, sear, PROConnect
                        AGD back bottle asa, laser logo

                        Comment

                        • sig11
                          Registered User
                          • Apr 2004
                          • 95

                          #27
                          Originally posted by FallNAngel
                          How do you figure? If the EEPROM is locked, you'll read zero's from it. You won't get an image of the chip at all. That's the whole point of having the chip locked... you *can't* read anything useful from it.
                          The program is not written into the EEPROM. It is loaded into the program flash on the AT90S2313. There is 2k bytes of memory for program storage. The EEPROM has 128bytes of data memory that can only be read from/written to one byte at a time. You CAN read the EEPROM and you CAN read the program memory. Check out the mu's manual.

                          Originally posted by athomas
                          What version of firmware was in your emag to start with? Ver. 1.35 wasn't locked and could be loaded into a computer in hex. Ver 1.37, unfortunately for us, was locked as far as I know. I personally haven't tried it although I do have all the gear except the connectors for the emag board.
                          I got my Xmag used... No idea what the original software was. It has 3.2 now. I do not believe the memory protection bits are set. Anyway, they just prevent writes as I understand the datasheet. The fuse bits can block data downloading but they can be changed without modifying the EEPROM or the program memory.

                          I was going to check that, but I didn't feel like tearing my gun apart to plug it in.
                          I believe that parallel programming mode is the default with the AVRStudio programmer. I have hex dumps of 3.2 and of the EEPROM data. I really haven't ever played with them because I think it would be more work to try modifying them than to write my own software...

                          Lee

                          Comment

                          • Caffiend
                            Caffinated Member
                            • Jul 2003
                            • 672

                            #28
                            Originally posted by gtrsi
                            scrolling text across the LED's.
                            I don't even want scrolling, just TEXT :)
                            VOOOODOOOO!
                            http://www.southwestvoodoo.com

                            Comment

                            • Korrosion
                              Registered User
                              • Oct 2002
                              • 149

                              #29
                              Originally posted by sig11
                              The program is not written into the EEPROM. It is loaded into the program flash on the AT90S2313. There is 2k bytes of memory for program storage. The EEPROM has 128bytes of data memory that can only be read from/written to one byte at a time. You CAN read the EEPROM and you CAN read the program memory. Check out the mu's manual.


                              I got my Xmag used... No idea what the original software was. It has 3.2 now. I do not believe the memory protection bits are set. Anyway, they just prevent writes as I understand the datasheet. The fuse bits can block data downloading but they can be changed without modifying the EEPROM or the program memory.

                              I was going to check that, but I didn't feel like tearing my gun apart to plug it in.
                              I believe that parallel programming mode is the default with the AVRStudio programmer. I have hex dumps of 3.2 and of the EEPROM data. I really haven't ever played with them because I think it would be more work to try modifying them than to write my own software...

                              Lee
                              Any chance you'd host the hex dumps for the curious? How hard could it be to replace "AGD 3.2" with "my name 5.0"? And if it does not work... just reflash to 3.2
                              O-Ring Kits For Sale
                              Matrix / DM4 / DM5 / Proto / Freestyle / Intimidator / Shocker SFT / Nerve / Impulse / Cyborg / Angel
                              Earn Free o-ring kits or discounts with the referral system!
                              http://www.pbnation.com/showthread.php?s=5358a7bdc14dda57f7507a4a62ef4fc7&threadid=816249&perpage=21&highlight=&pagenumber=1

                              Comment

                              • sig11
                                Registered User
                                • Apr 2004
                                • 95

                                #30
                                Originally posted by Korrosion
                                Any chance you'd host the hex dumps for the curious? How hard could it be to replace "AGD 3.2" with "my name 5.0"? And if it does not work... just reflash to 3.2
                                Nope, sorry. Someone asked about that before and Tom said no. :)

                                Lee

                                Comment

                                Working...