Asking for NIS with TCP-IP component

Forum for problems or queries regarding Flowcode Comms Components. Eg LIN, I2C, SPI, RS232, CAN, IrDA etc

Moderators: Benj, Mods

Post Reply
MJU
Posts: 502
Joined: Wed Nov 07, 2007 6:51 pm
Location: Antwerp Belgium
Has thanked: 121 times
Been thanked: 108 times
Contact:

Asking for NIS with TCP-IP component

Post by MJU »

I'm trying to ask back information from a internet time server with my Eblocks.
I have tried several possibilities but it doesn't seem to go as planned.

If I doe a telenet : 129.6.15.28 at port 13 on my CMD it returns a value for the actual internet time.
But how can I do this with the TCP-IP component?
Use UDP or TCP?

I need to set destination and port, but by sending this I don't get a reply.

What is the right way to simulate a "telnet 129.6.15.28 13" like from within CMD on a Windows PC?

Thanks

User avatar
Steve
Matrix Staff
Posts: 3422
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Re: Asking for NIS with TCP-IP component

Post by Steve »

I think you need to send this telnet message out using the IP protocol layer.

MJU
Posts: 502
Joined: Wed Nov 07, 2007 6:51 pm
Location: Antwerp Belgium
Has thanked: 121 times
Been thanked: 108 times
Contact:

Re: Asking for NIST with TCP-IP component

Post by MJU »

Thank you Steve.

I found out that I need to use TCP (port 13)
But for some reason I don't get it to work.

All I do (in telnet) is connect to the server 129.6.15.28 port 13, the NIST server (in the title I wrote NIS), this server replys with a bunch of data and closes the connection.
But I don't seem to get it working on my Eblocks...

Post Reply