UDP communication
Posted: 30 Mar 2010 03:02
Hi, I just move to MikroC compiler because it suits my application using ethernet based communication. They have working example, e.g. ping test. Because they don't serve TCP stack at the moment, I try to use UDP.
I have PC as the master (server) and the board, dsPIC30F6014A as the client. I look example "UdpReadUsartOut" available. I have some doubts:
1. I send data via UDP from PC then to the board. The board then transfer back the data via USART.
2. How to send the other way around, from USART to UDP port? Should I insert SPI_Ethernet_PutByte() in the UDP subroutine?
I'm using MikroC Pro for dsPIC 2.00.
thanks
warm wishes
I have PC as the master (server) and the board, dsPIC30F6014A as the client. I look example "UdpReadUsartOut" available. I have some doubts:
1. I send data via UDP from PC then to the board. The board then transfer back the data via USART.
2. How to send the other way around, from USART to UDP port? Should I insert SPI_Ethernet_PutByte() in the UDP subroutine?
I'm using MikroC Pro for dsPIC 2.00.
thanks
warm wishes