PC Recognizing Stamp Module
txaggie
Posts: 26
Hello all!
I have searched this forum over and over and can't seem to find an answer to this. When you download a program to the stamp, the editor "self-discovers" which com port it is on and which stamp module it is. I currently have my software I wrote and my BS2px prototype project working great(although the com port is hard-coded). There are others out there that are interested in my project as well. I'd like to give them the schematics, BOM and software as freeware, but would like to code in an auto setup in the software for whichever stamp they choose to use. Basically, I want the software to auto-scan the ports checking for the stamp module they have (Like when you click on identify in the stamp editor), then when found, automatically download the compatible code (correct compiler directives) via stampw command line spawned in an internal thread (If it is their first run or there is a firmware update). I know I can create a multi-file project for the advanced BS2 modules, but they can also use the BS2 module, which doesn't allow that as I understand it. Also, I don't want the stamp code overloaded with a bunch of conditional #DEFINE statements. In the end, I want all this to be internal to the software, so non-savvy users can just plug and play, and not have to worry about the Stamp Editor or need to learn how to program the stamp. The port scanning is easy, but what I really want to know, is how the editor retrieves the module info while scanning?
Any ideas? Thanks,
Scott
I have searched this forum over and over and can't seem to find an answer to this. When you download a program to the stamp, the editor "self-discovers" which com port it is on and which stamp module it is. I currently have my software I wrote and my BS2px prototype project working great(although the com port is hard-coded). There are others out there that are interested in my project as well. I'd like to give them the schematics, BOM and software as freeware, but would like to code in an auto setup in the software for whichever stamp they choose to use. Basically, I want the software to auto-scan the ports checking for the stamp module they have (Like when you click on identify in the stamp editor), then when found, automatically download the compatible code (correct compiler directives) via stampw command line spawned in an internal thread (If it is their first run or there is a firmware update). I know I can create a multi-file project for the advanced BS2 modules, but they can also use the BS2 module, which doesn't allow that as I understand it. Also, I don't want the stamp code overloaded with a bunch of conditional #DEFINE statements. In the end, I want all this to be internal to the software, so non-savvy users can just plug and play, and not have to worry about the Stamp Editor or need to learn how to program the stamp. The port scanning is easy, but what I really want to know, is how the editor retrieves the module info while scanning?
Any ideas? Thanks,
Scott
Comments
That stuff doesn't take up memory, if that's your concern.
Thanks,
Scott
Thank you!,
Scott