Offline
Newbie
Karma: 0
Posts: 25
|
 |
« on: August 13, 2012, 09:07:37 am » |
Hi all, thank you for stopping by to help me out!!  I am creating a code that will be forever communicating with the user's computer through the serial monitor. So what I am doing now is that I simply double-click on the sketch, click upload, and click on the serial-monitor and use the code. But the problem is, I want to hide my code but still use either the serial monitor, or something like that to interact with the Arduino mega 2560 ADK.If you have such an idea on how to do this, please let me know. Thank you a lot in advance 
|
|
|
|
|
Logged
|
|
|
|
|
Gosport, UK
Offline
Faraday Member
Karma: 19
Posts: 3117
|
 |
« Reply #1 on: August 13, 2012, 09:12:16 am » |
Once the sketch is uploaded, there's no need to upload it again. Use something like PuTTY, instead of the Serial monitor, and you don't need to open the IDE.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 25
|
 |
« Reply #2 on: August 13, 2012, 09:27:50 am » |
so do I simply download PuTTY from ( http://download.cnet.com/PuTTY/3000-7240_4-10808581.html) and install and use it? dxw00d, could you please elaborate on using the PuTTY as my arduino is not with me right now and have to go to school to use it. Can I simply double click the PuTTY icon and use it just like the serial monitor or do I have to do something special to get it working? thank you.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 138
Posts: 19067
I don't think you connected the grounds, Dave.
|
 |
« Reply #3 on: August 13, 2012, 09:51:23 am » |
Putty is a terminal emulator, and your Arduino software may not work correctly with it, depending on how it is written. The Serial Monitor doesn't send characters until you click on "send", but a terminal emulator sends them as the keys are pressed. How your software recognises the end of character input may also need some attention, if your Serial Monitor is configured not to send a newline character.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
0
Offline
Tesla Member
Karma: 51
Posts: 6586
Arduino rocks
|
 |
« Reply #4 on: August 13, 2012, 09:50:32 pm » |
I want to hide my code but still use either the serial monitor, or something like that to interact with the Arduino mega 2560 ADK.
If you want to "hide" your source code, just compile and upload it to the arduino and it is then it is hidden. Somebody could possibly download the binary from the arduino, but i doubt they would be able to decompile it.
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 277
Posts: 25566
Solder is electric glue
|
 |
« Reply #5 on: August 14, 2012, 12:29:14 am » |
jdforlife - you are missing the point, as have been said:- Once the sketch is uploaded, there's no need to upload it again.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 219
Posts: 13896
Lua rocks!
|
 |
« Reply #6 on: August 14, 2012, 12:54:14 am » |
Upload the code at home. Demo it at school. No-one can see your source code.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
God Member
Karma: 10
Posts: 886
|
 |
« Reply #7 on: August 14, 2012, 02:38:48 am » |
Is it not possible to read every byte from the flash memory? and store the data raw and dump/upload it to another atmega chip?
(not trying to put the OP off... curiosity) once you read every byte, you have an identical copy to upload to another board (minus the source code)?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Edison Member
Karma: 15
Posts: 1009
Arduino rocks
|
 |
« Reply #8 on: August 14, 2012, 02:44:01 am » |
Is it not possible to read every byte from the flash memory? and store the data raw and dump/upload it to another atmega chip?
(not trying to put the OP off... curiosity) once you read every byte, you have an identical copy to upload to another board (minus the source code)?
See: DRM
|
|
|
|
|
Logged
|
|
|
|
|
Germany
Offline
Edison Member
Karma: 27
Posts: 1507
|
 |
« Reply #9 on: August 14, 2012, 02:54:35 am » |
See: DRM I assume you talk about Digital Rights Management. I bet there's no such library for Arduino available. Does every atmega chip have a unique ID (serial number)? How else could you achieve identification? I think that's rather a question for the Lock bits. Not sure if this is OP's intention: Hiding Source Code is something different than Copy Protecting Binary
|
|
|
|
« Last Edit: August 14, 2012, 03:06:21 am by michael_x »
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 219
Posts: 13896
Lua rocks!
|
 |
« Reply #10 on: August 14, 2012, 04:04:13 am » |
Is it not possible to read every byte from the flash memory? and store the data raw and dump/upload it to another atmega chip?
You can burn fuses lock bits to prevent that. But he asked about source code.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 219
Posts: 13896
Lua rocks!
|
 |
« Reply #11 on: August 14, 2012, 04:05:09 am » |
Does every atmega chip have a unique ID (serial number)?
No.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 25
|
 |
« Reply #12 on: September 19, 2012, 09:10:25 am » |
You can burn fuses lock bits to prevent that. But he asked about source code.
And... how do I do that nick?... please explain as I would love to learn that 
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Edison Member
Karma: 26
Posts: 1339
You do some programming to solve a problem, and some to solve it in a particular language. (CC2)
|
 |
« Reply #13 on: September 19, 2012, 10:50:15 am » |
There's one of these "fuses", i.e. configuration bits, that can prevent reading the chip's program memory. It's called something like "read only" fuse I think  Here's a page about avrdude that talks about its ability to "burn" (i.e. set) fuses on the atmega328: http://www.ladyada.net/learn/avr/avrdude.htmlAlso: http://www.ladyada.net/learn/avr/fuses.htmlHTH
|
|
|
|
|
Logged
|
|
|
|
|
|