hi, i am using RTCS stack and want to know how to communicate between two ports?
Shweta,
You need a client-server TCP/UDP interface. The attached example may be useful.
Regards,
Carlos
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello,
There is an Ethernet driver in \mqx\io\enet, normally you will use the high-level socket interface provided by the RTCS stack to transmit and receive data.Please check the below application note, this hows how to use this driver and it explains the setup sequence required to start using RTCS. (section 2.5)
http://cache.nxp.com/files/microcontrollers/doc/app_note/AN4345.pdf
In addition you can find some RTCS example applications, you can use this examples as reference
<mqx_install>\rtcs\examples
eth_to_serial: Simple character passing between the UART console and the telnet session. Shows custom "lightweight" telnet.
httpsrv: Simple web server with CGI-like scripts and web pages stored in internal flash.
shell: Shell command line providing commands for network management.
snmp: SNMP protocol example providing microprocessor state information.
Also there are some application notes that may can be useful:
http://cache.nxp.com/files/microcontrollers/doc/app_note/AN4810.pdf
http://cache.nxp.com/files/microcontrollers/doc/app_note/AN4417.pdf
http://cache.nxp.com/files/32bit/doc/app_note/AN4022.pdf
I hope this helps, have a great day,
Sol
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------