Jump to content

Tim Jameson

  • Content Count

  • Joined

  • Last visited

  • Days Won


Tim Jameson last won the day on May 19 2017

Tim Jameson had the most liked content!

Community Reputation

1 Neutral

About Tim Jameson

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. OK, I found the solution. You must use TCP_RAW Send and your message must be in a format like: GET http://localhost:2006/1.aspx HTTP/1.1\r\n" + "Host: localhost:2006\r\n" + "Connection: keep-alive\r\n" + "User-Agent: Mozilla/5.0\r\n" + "\r\n"; I did not use the User-Agent stuff, but I still included an empty line. Once I did this, my web server started reporting the GET request.
  2. OK, I am stuck, and to be honest I have no idea why I am stuck. All I want to do is request a web page from a web server. Specifically, I have created a PHP page that will return the string "OK" when called. I am using this page for the PLC to report that it has an error. Inside the PHP, I will use the parameters to identify the PLC and the error. This should be easy, Right? I have configured my port and my TCP/IP configuration to socket 3, port 504. I issue a TCP/IP connect to the server (IP is correct, port is 80), and it appears to connect. I then issue a TCP/IP Send to send the GET /url/r/nHost: <hostname>/r/n/r/n/r/n. And that is where I am stuck. It does not appear that the message is sent to the sever. In fact, my web server never "sees" the request. Does anyone have any idea how to issue a url request to a web server? I do not even care about what I get back, I just want to call the page. Any help is greatly welcome. Thank you in advance. Tim J.
  3. Joe, Thank you for your response. I did not know that I would have access to the MAC address, that is very helpful to know. I will create a basic encryption algorithm, utilizing the MAC address and other information to verify before performing any operations. That should be sufficient security. Thanks again, Tim J.
  4. I have been tasked with developing a centralized server that will communicate with many Samba PLCs around the world. Specifically, I need to ensure that the server can contact any PLC and 1) get a copy of the current values or 2) instruct the PLC to change a value. I want to ensure that the PLCs only communicate with the server, no other computers. The data itself is not considered secret, so the fact that VisiLogic does not appear to offer encryption is not a problem. But, it is critical that only the server be allowed to update PLC values. It is simply unacceptable that another person could connect and update values, even if it would take quite the effort to accomplish that goal. Is there any way to ensure that the PLC's will only respond to requests/instructions from our centralized server? If I send a password, as a message, that password would not be encrypted, so others could see and use it. Is there anyway to securely connect to a Samba PLC, using VisiLogic? The server will know the PLC name and the IP Address, but once again, this would be transmitted unencrypted. Is there a way to program the PLC's to only accept connections from certain IP Addresses? In summary, I want to ensure that the PLCs will listen for communication from our server, they will send current values when requested, they will update their values when told, and they will ignore any requests from others. Is this possible? Any suggestions are greatly appreciated.
  • Create New...