what are the requirements to get server time as udp packet through ethernet ? Do i need TCP/IP stack and socket programming when there are built in registers for MAC AND PHY

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

what are the requirements to get server time as udp packet through ethernet ? Do i need TCP/IP stack and socket programming when there are built in registers for MAC AND PHY

954 Views
sharathkumar
Contributor I

Ethernet programming to get server time

Labels (1)
0 Kudos
Reply
5 Replies

821 Views
iggi
NXP Employee
NXP Employee

Hi Sharath,

Here is some gathered information that can be helpful.

Documentation/code examples for using the 9S12NE64 for establishing a simple UDP based communications channel with a desktop computer over a LAN:

1) You can download the “Connector” sample application for NE64 demo board (If you haven't downloaded it yet...).
This example is based on UDP protocol. See the Sources\“Main.c” there are basic configuration functions calls and main packet processing loop. File “Connector_App.c” contains the application code using UDP protocol functions on the MC9S12NE64. It calls UDP implementation code in “udp.c”.

Link to download Connector application SW:
https://www.nxp.com/webapp/sps/download/license.jsp?colCode=MC9S12NE64APP

2) Very similar is the code application note AN2836 - Web Server Development with MC9S12NE64 and OpenTCP:
http://www.nxp.com/files/microcontrollers/doc/app_note/AN2836.pdf
http://www.nxp.com/webapp/sps/download/license.jsp?colCode=AN2836SW
(UDP application code is in file “udpinterface.c”)

These SW examples are based on Viola Stack SW. You could test it, add your own lines to program or include the libraries to your project.

3) Also, there are some other commercial stacks for NE64 which you can try (e.g. obtain free educational license for test purposes):

- uTasker Stack (For NE64 and ColdFire MCF5223x): http://www.mjbc.ch/index.html.en

- CMX Micronet Stack: http://www.cmx.com/micronet.htm

- About IPV6 protocol
It looks like it would not be possible for the NE64 to fully implement the IPV6 standard required SSL (secure socket layer) support. It would require quite big modifications to the stack. Assumption is that IPV6 would not fit in a NE64.
IPV6 is quite a lot more complicated than IPV4 and requires more resources as well as active use of multicasting. This means also that the Ethernet driver (hardware dependent) needs to be modified to take advantage of the HW multicast support.

Regards,

iggi

-----------------------------------------------------------------------------------------------------------------------
Note: If you find this answer helpful, kindly mark it. If this post answers your question,
please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

821 Views
iggi
NXP Employee
NXP Employee

Hi Sarath,

i assume you are in wrong space with this question. What MCU/MPU is this topic related to?

iggi

0 Kudos
Reply

821 Views
sharathkumar
Contributor I

MCU9s12NE64

0 Kudos
Reply

821 Views
Yuri
NXP Employee
NXP Employee

Hello,

   Generally You are right : to use NTP (in order to get NTP packages from a server)
TCP / IP stack is needed. I am afraid NXP does not support it for S12. 

Perhaps it makes sense to apply to Professional Service.

NXP Professional Services|NXP  

Regards,

Yuri.

0 Kudos
Reply

821 Views
iggi
NXP Employee
NXP Employee

Hi Sarath,

As you may already know this product has been discontinued. This particular MCU device is the only one with ethernet module on chip within entire S12(X) device family. My knowledge about this feature is very low and i can barely help you.

Not sure if there is anyone around this community who can provide some feedback. But i will check if some of my colleagues can assist as this question sounds quite general.

Regards,

iggi

0 Kudos
Reply