Tcp/ip

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
o.fithcheallaigh
Posts: 14
Joined: Fri Feb 04, 2011 7:51 pm
Has thanked: 3 times
Contact:

Tcp/ip

Post by o.fithcheallaigh »

Hi
I'm a student currently working on my fourth year project, which involves controlling i/o of the PIC16F877A remotely using matrix's internet board. My problem is deciding the best option for sending messages to the board i.e. UDP, HTML, TCP etc? I realised that the memory on the 16F877A is restrictive and may limit the amount of applications I can use.

Any help or advice would be greatly appreciated.

Sean
Fuair siad bás ar son saoirse na hÉireann.

Go raibh tú leathuair ar Neamh sula mbeadh a fhios ag an diabhal go bhfuil tú marbh.

User avatar
Steve
Matrix Staff
Posts: 3421
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Re: Tcp/ip

Post by Steve »

I'd probably vote for UDP as it is a little easier to deal with than TCP.

o.fithcheallaigh
Posts: 14
Joined: Fri Feb 04, 2011 7:51 pm
Has thanked: 3 times
Contact:

Re: Tcp/ip

Post by o.fithcheallaigh »

Hey,

Thanks Steve, is there any chance you've any code you have used to implement UDP to change i/o?

Sean
Fuair siad bás ar son saoirse na hÉireann.

Go raibh tú leathuair ar Neamh sula mbeadh a fhios ag an diabhal go bhfuil tú marbh.

User avatar
Steve
Matrix Staff
Posts: 3421
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Re: Tcp/ip

Post by Steve »

Sorry, Sean. I don't have any examples to hand.

The TCP/IP component has information on how to set-up UDP comms and there is more info in this in the "Embedded Internet" manual which can be found here:
http://www.matrixmultimedia.com/lc_advanced_course.php

o.fithcheallaigh
Posts: 14
Joined: Fri Feb 04, 2011 7:51 pm
Has thanked: 3 times
Contact:

Re: Tcp/ip

Post by o.fithcheallaigh »

Thanks again Steve,

Is it possible to send UDP packets to a remote PIC using the hyperterminal or Hercules (HW Group freeware, for communicating over tcp/ip)?

Sean
Fuair siad bás ar son saoirse na hÉireann.

Go raibh tú leathuair ar Neamh sula mbeadh a fhios ag an diabhal go bhfuil tú marbh.

User avatar
Steve
Matrix Staff
Posts: 3421
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Re: Tcp/ip

Post by Steve »

There are tools that you can use to send and receive data over the network. But be aware that when receiving or "snooping" on ethernet traffic that a hub will usually filter out messages that are not intended for the IP of your PC.

Post Reply