2012-08-21 01:15 AM
Posted on August 21, 2012 at 10:15
hi, i am using stm32f107vc.. for ethernet programming which one is good? TCP or UDP... i just use the ethernet communication for transferring sensor data..i am new to ethernet and stm32f107...i am using dp83848... i need some example codes... how to use tcp or udp in programming...
2012-08-21 05:27 AM
Use Google... Ethernet uses 802.3 frames... Pick an appropriate protocol... for task at hand... read some manuals... and RFCs... Look at LwIP and other protocol stacks... Berkeley Sockets... ???
2012-08-21 02:36 PM
''for ethernet programming which one is good? TCP or UDP''
If either one were ''good'', and the other not, why would both exist?! Of course, they are both good in their own ways; each has its own advantages & disadvantages, and these have nothing to do with the STM32 - so any general site, tutorial, book, paper, or whatever will be applicable. Note that they don't even have anything specifically to do with ethernet; they are both carried over IP (the Internet Protocol) - which can be carried over many different lower-level ''bearers''. Again, this is general networking stuff - nothing specifically to do with the STM32. Try googling, ''7-Layer Model''...
2012-08-23 01:50 AM
Hi,
LwIP stack has been ported on STM32F107, STM32F2 and STM32F4 devices, have a look at the following Application notes: AN3102 for STM32F107http://www.st.com/internet/mcu/product/221027.jsp
, AN3384 for STM32F2 and AN3966 for STM32F4 . If you need TCP and UDP example codes, the STM32F2 and STM32F4 packages contain simple TCP and UDP examples, you can port them on STM32F107 easily.2012-11-25 05:41 AM
2012-11-25 06:08 AM
Perhaps you can expand on why the cited examples are not simple enough for your purposes?
Perhaps elucidating on what chip and board you're using, what you've tried, where you're stuck.