Pages: [1]   Go Down
Author Topic: How to hide my source code.  (Read 1028 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all, thank you for stopping by to help me out!! smiley
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 smiley
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Newbie
*
Karma: 0
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Brattain Member
*****
Karma: 302
Posts: 26338
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

0
Offline Offline
Tesla Member
***
Karma: 145
Posts: 9636
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
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

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   smiley-cool

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 627
Posts: 34230
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

jdforlife - you are missing the point, as have been said:-

Quote
Once the sketch is uploaded, there's no need to upload it again.
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 485
Posts: 18810
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Upload the code at home. Demo it at school. No-one can see your source code.
Logged


Offline Offline
Edison Member
*
Karma: 29
Posts: 2455
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Edison Member
*
Karma: 19
Posts: 1041
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Faraday Member
**
Karma: 59
Posts: 3057
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
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
Offline Offline
Brattain Member
*****
Karma: 485
Posts: 18810
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Offline Offline
Brattain Member
*****
Karma: 485
Posts: 18810
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Does every atmega chip have a unique ID (serial number)?

No.
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley
Logged

Offline 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)
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley-razz

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.html

Also:
http://www.ladyada.net/learn/avr/fuses.html

HTH
Logged

Pages: [1]   Go Up
Jump to: