Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I'm Koray
ı am sorry for my bad English. I hope you can understand me. My question is; I need to send a pantilt command using ethernet cable. Those who do not know the pantilt can think of it as a kind of motor. And I'm sending the command to the a driver. I need to write with the C ++ programming language. Previously I was able to control the pantilt by sending command with serial communication using visual studio c ++. I need to send pant command using ethernet instead of serial communication. I am stranger to this because I have not used the tcp/ip protocol before. In short, I have to send a command from my computer over a ethernet cable in a pant. I do not have any kind of information to help, such as how to do things, research topics, sample projects. I read a lot of articles from the internet but I do not know which one is useful for me.
thanks for every think.

What I have tried:

I think I will do it by way of socket programming. Am I on the right track?
Posted
Updated 22-Jan-18 1:29am

1 solution

Quote:
think I will do it by way of socket programming. Am I on the right track?
Yes.
You (with high probability) have to write a TCP client. You may find many, many examples of C++ TCP client on the web, just Google for.
 
Share this answer
 
Comments
Member 13636727 22-Jan-18 7:36am    
yes there are many examples. I also found some client code that works. Can I send commands to a simple driver using only the client?
CPallini 22-Jan-18 8:20am    
Of course, provided the driver is a TCP server.
Member 13636727 22-Jan-18 8:34am    
unfortunately the driver is providing a server. I will code a server and client using socket. server will be an industrial computer if my client is a client. I will control the panties through this computer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900