CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Tue Nov 20, 2018 4:22 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Programme License
PostPosted: Fri Jan 05, 2018 12:01 am 
Offline

Joined: Tue Feb 28, 2017 8:43 pm
Posts: 29
Hi,

If I have loaded my programme to my pi, bought and uploaded a license, is it possible to clone the pi SD card, put it in another Pi, buy another license, upload the license to the new pi and have the programme from the original pi
working without having to reupload the programme?


Top
   
 Post subject: Re: Programme License
PostPosted: Fri Jan 05, 2018 8:18 am 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 2960
Hi,
yes this will work,
except you need to take care on reactivating a new license, the following steps are needed to do it.

1. clean up cmact_license directory ( /var/opt/codesys/cmact_licenses/) - delete the content of this directory
2. restart the plc -
sudo /etc/init.d/codesyscontrol stop
sudo /etc/init.d/codesyscontrol start
or reboot the pi

3. activate the new license

BR
Edwin


Top
   
 Post subject: Re: Programme License
PostPosted: Fri Jan 05, 2018 5:20 pm 
Offline

Joined: Tue Feb 28, 2017 8:43 pm
Posts: 29
Ah, this may cause an issue. Is there way to protect my programme so that I can stop this from happening? I understand I can put some security features in to my code but is there an easier way through codesys?


Top
   
 Post subject: Re: Programme License
PostPosted: Sat Jan 06, 2018 7:38 am 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 2960
Hi,
hm.. do you want to prevent that this works?
(Copy the bootproject to another pi?)

Then you could use a runtime key to encrypt the bootproject then only the pi with the correct key could
start the bootproject:
The other option is to encrypt the boot project by certifcate, see the online help here:
https://help.codesys.com/webapp/_csa_en ... on=1.0.0.0

BR
Edwin


Top
   
 Post subject: Re: Programme License
PostPosted: Sat Jan 06, 2018 11:55 pm 
Offline

Joined: Tue Feb 28, 2017 8:43 pm
Posts: 29
Perfect, that is what I am after, providing protection from unlawful copying of my programme. It seems the solution you have posted should work. I will try it, hopefully I wont have any issues.

Thanks for your help Edwin.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited