Link to home
Start Free TrialLog in
Avatar of Rama Tito
Rama TitoFlag for Malaysia

asked on

Ethernet communication

Hi, I am doing interfacing to machinery using through Ethernet port. On hardware part, I do have all the commands send and receive.

Can anyone help how to send command using ethernet port and read in C#. Is that similiar as com port?
ASKER CERTIFIED SOLUTION
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Rama Tito

ASKER

Hi, thank you for the link given,

I am looking for basic way to develop it. the links make me a bit confuse. Basically in comm port communication

Set the parameters (baudrate, parity, etc)
then open port
send something
receive something
close port.

i looking for simplest method to develop it, can some one guide me.
Avatar of Dave Baldwin
If it is really an Ethernet network connection, you need to use the info in the link above.  The Ethernet Network port belong to Windows and you have to use their drivers to communicate thru them.  If it is really a 'serial port' on an 8 position RJ45 connector, then you got the info in your previous questions.
I don't think it can be easier. The socket programming model is event-driven, so it won't be as linear as serial port programming could be. btw, serial port programming can be event-driven as well.
Hi, thank you for the advice. I did try out to send command using C# form. I did insert command in textbox1 and by clicking send should receive result in textbox2. Please do guide me up here.
Are you trying with two machines?
Hi, i am trying between pc and machine.