View previous topic :: View next topic |
Author |
Message |
ik1wvq
Joined: 21 Feb 2004 Posts: 20
|
simple mode to send UDP packet ? |
Posted: Wed Sep 16, 2009 10:19 am |
|
|
hi,
i need to send UDP packets to a single TCP/IP address in a local network.
ONLY SEND, ONLY UDP, ONLY single address, ONLY local network.
do you know a SIMPLE code to obtain this, using the PIC with controller ethernet inside ? (PIC18 "J" series ?)
i cant use the "serial-ethernet" modules, like tibbo or lantronics ....
thanks in advance
Mauro |
|
|
bkamen
Joined: 07 Jan 2004 Posts: 1615 Location: Central Illinois, USA
|
|
Posted: Wed Sep 16, 2009 10:56 pm |
|
|
have you looked at the CCS code yet? You'll need to set up the ethernet module one way or another...
Once you learn the TCP/IP code, doing UDP is pretty easy....
-ben _________________ Dazed and confused? I don't think so. Just "plain lost" will do. :D |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1634 Location: Perth, Australia
|
Re: simple mode to send UDP packet ? |
Posted: Sat Sep 19, 2009 2:19 am |
|
|
ik1wvq wrote: | hi,
i need to send UDP packets to a single TCP/IP address in a local network.
ONLY SEND, ONLY UDP, ONLY single address, ONLY local network.
do you know a SIMPLE code to obtain this, using the PIC with controller ethernet inside ? (PIC18 "J" series ?)
Mauro |
If you use a light weight PIC18F family member then RFC1149 outlines the simplest method. http://www.faqs.org/rfcs/rfc1149.html _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
|