12/13/2011 4:47 PM | |
Joined: 9/8/2009 Last visit: 7/17/2023 Posts: 1410 Rating:
|
Yes, I agree that there are other possibilties, to implement a custom server-client protocol for bridging to SQL server, with also many different server protocols like oracle, mysql, mssql,.. |
Last edited by: Marko Bursic at: 12/13/2011 4:49 PM |
|
12/19/2011 11:46 PM | |
Joined: 9/8/2009 Last visit: 7/17/2023 Posts: 1410 Rating:
|
Hi, all I have been studing MySQL client written in C++ and now I made first steps. The first problem is enycription of password and this is done with SHA1 function, I have been watching many SHA1 algorithms and now I made a small version of it. The purpose is to authenticate a login to the server, so it is limited to 40 characters, only just what is needed for MySQL authentication. The server when detects a connection, sends a greeting message to client, which has a random pattern of characters. Both client and server encrypts this pattern with known password. Client sends this encrypted pattern to the server which compares with its result and then if they match youre logged in. After logon is much simpler, sql statements are sent to the server in string form, so implementing an tiny client is close. Is anybody interested to join? I am not expert from converting C++ programs into S7, and help would be appreciated. I have attached SCL source Step7 for function SHA1 Attachment00000003.zip (2389 Downloads) |
7/19/2012 12:40 PM | |
Posts: 4 Rating:
|
Hello! I am also interesting in about s7-1200 mysql connection. If you have any info please share. Do you have a working c /or c++ program? Bye.
|
12/12/2012 1:11 AM | |
Posts: 33 Rating:
|
I'm interested in helping out on this project too. let me know if your still actively working on it. Thanks! |
12/14/2012 5:00 PM | |
Joined: 9/8/2009 Last visit: 7/17/2023 Posts: 1410 Rating:
|
If you didn't see other post, this is what was done. I have tested this with plcsim, it has never run on real plc, but is very probable that is working. AttachmentMySQL_v3 -- MySQL_v1_SIMATIC 30.pdf (3729 Downloads) |
This contribution was helpful to
1 thankful Users |
12/14/2012 6:02 PM | |
Joined: 9/8/2009 Last visit: 7/17/2023 Posts: 1410 Rating:
|
I will put the last source and pdf I have made near year ago.
Attachment0000000c.zip (2291 Downloads) |
This contribution was helpful to
1 thankful Users |
12/14/2012 6:03 PM | |
Joined: 9/8/2009 Last visit: 7/17/2023 Posts: 1410 Rating:
|
pdf
AttachmentMySQL_v5 -- MySQL_v1_SIMATIC 30.pdf (2908 Downloads) |
This contribution was helpful to
1 thankful Users |
6/14/2013 9:54 PM | |
Posts: 7 Rating:
|
i'm very interresting by this projet, i have real S7-400 with ethernet, and i search sample of program to send data directlyt from PLC to SQL server
|
Follow us on