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

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

Tcp/ip

Postby o.fithcheallaigh » Tue Feb 15, 2011 11:35 am

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: 3111
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 89 times
Been thanked: 398 times
Contact:

Re: Tcp/ip

Postby Steve » Tue Feb 15, 2011 2:06 pm

I'd probably vote for UDP as it is a little easier to deal with than TCP.
These users thanked the author Steve for the post:
o.fithcheallaigh (Mon Feb 21, 2011 6:47 pm)
Rating: 5%
 

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

Re: Tcp/ip

Postby o.fithcheallaigh » Mon Feb 21, 2011 2:25 pm

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: 3111
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 89 times
Been thanked: 398 times
Contact:

Re: Tcp/ip

Postby Steve » Wed Feb 23, 2011 7:57 am

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

Postby o.fithcheallaigh » Tue Mar 01, 2011 12:11 pm

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: 3111
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 89 times
Been thanked: 398 times
Contact:

Re: Tcp/ip

Postby Steve » Tue Mar 01, 2011 12:58 pm

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.