Home AMX User Forum NetLinx Studio

Possible To Upload Code From Controller To Pc??

Is it POSSIBLE TO UPLOAD CODE FROM CONTROLLER TO PC or is it only one-way traffic?

We have a controller that isn't working properly and want to put the programme that is running on it onto a replacement - problem is we don't have the source code or any of the other files! So was hoping I could import the code from the controller into NextLinx.... possible or just plain silly??!!

Rgds

Newbie (obviously!)

Comments

  • Only if the programmer loaded the source code into the controller originally.
  • Run Netlinx Studio 2, select File Transfer / Receive.
  • vincenvincen Posts: 526
    philadams wrote:
    Is it POSSIBLE TO UPLOAD CODE FROM CONTROLLER TO PC or is it only one-way traffic?
    We have a controller that isn't working properly and want to put the programme that is running on it onto a replacement - problem is we don't have the source code or any of the other files! So was hoping I could import the code from the controller into NextLinx.... possible or just plain silly??!!

    If you don't own source code and that you want to transfer compiled program from a master to an other one (as first one is dead), you can do it but you'll need a Linux computer and a CF card ;)

    Vinc
  • Vincen, that's a tease, please explain.
  • vincenvincen Posts: 526
    All you need is a CF card reader (either USB or Firewire doesn't matter) and a computer able to read FAT system (All windows systems, Linux or OSX). Unscrew your NI to open it, or remove your NetLinx Master card from its slot and then remove from it the CF Card in it.

    Put it in your CF reader, you'll find on it different files but interesting for now is PROG.TKN file that is compiled NetLinx program (DON'T TOUCH BW FILE AS YOU'LL MAKE YOUR MASTER DEAD AS IT CONTAINS OPERATING SYSTEM OF NETLINX MASTER).

    Copy the PROG.TKN file on your computer, eject card, insert card of new master/NI, and then copy on it PROG.TKN file previously saved on your computer (you'll probably need to overwrite existing file on CF).

    Put back that card in your new master, reinstall it, and power it, and you are all set ;)

    Vinc?n

    P-S: I'm not responsible at all for any bad things you would do ;)
  • viningvining Posts: 4,368
    You can also retrieve the PROG.TKN and PROG.ZIP via ftp. The zip holds the include and module files in the exact path that they reside on the programmers PC. There's also the Program Files directory as well with Common Files/Amxshare/Netlinx.axi inside.

    I don't know what you would do with the TKN file other than FTP it into the new master in effect transferring the program with out ever seeing it.

    But you can get access to all the includes, well maybe not, I just tried to open one and it's password protected and not with the password I use for Netlinx access which makes me think its the AMX back door password and they hold the key.

    Oh, you have to FTP from command line not from a browser.
  • viningvining Posts: 4,368
    OK, I take that back! It is my password but in uppercase which means I must have set it that way but I swear it's always been lower.
Sign In or Register to comment.