Wireless Sensor Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

WSN and RT time stamps

Hi WSN engineers again,

 

I'm using a CRIO 9014 and my WSNs. They'll be working stand alone. Is there a way to synchronise there times? Can the CRIO act a time server for the WSN? I understand how to configure the host PC to act as the time server, but not sure about the RT targets.

 

Thanks,

Jevon

 

 

 

 

0 Kudos
Message 1 of 7
(8,726 Views)

Hi Jevon,

 

Can I have permission to contact you directly by looking up your email address?

 

thanks,

Kurt 

0 Kudos
Message 2 of 7
(8,709 Views)

Hi Kurt,

 

That's perfect, hear from you soon hopefully.

 

Jevon

0 Kudos
Message 3 of 7
(8,704 Views)

Hi Kurt,

 

I have not got an email from you yet, posting to let you know in case you've emailed and wondered why I haven't replied.

 

Thanks,

Jevon

0 Kudos
Message 4 of 7
(8,653 Views)
Email should be in your box now 🙂
0 Kudos
Message 5 of 7
(8,639 Views)

Hi,

 

I tried the same thing: cRIO-9073 should be time server for WSN-9791

 

cRIO-9073 has IP 192.168.1.2

WSN-9791 has IP 192.168.1.3 (time server in MAX is set tot 192.168.1.2)

 

I wrote a VI which listens for NTP clients and sends a NTP package back, if the requesting IP is in the IP list of allowed clients. I can force the VI to run in a loop until the client, in my case the WSN-9791 replies. Then I send a NTP package to the WSN an i quit the VI.

 

I had some serious problems to create the real UTC timestamp but I solved it using Wireshark. The conversion between NTP timestamp and Labview timestamp was the big challenge. Wireshark shows the transmitted UTC timestamp.

 

My problem: the WSN-9791 does not allways accept the NTP timestamp, sometimes it does, sometimes it does not. Is there any solution on how to make the thing working for 100%? Please keep in mind that my NTP server VI may have some errors or does not follow exactly the NTP standard and can cause conflicts with the WSN-9791.

 

To use the VI just open UDP port 123 (no other settings) and then connect the VI, close UDP after the VI again. Timeout can be set also, if you want. From my experience the WSN-9791 more or less every minute sends a request to his time server. (Used host PC, Meinberg NTP Server and Wireshark to check that)

 

If anyone can help me I would really need help, because until now my WSN-9791 is wrong for one hour. If cRIO runs on UTC+1 WSN runs on UTC+2 !?!??

 

Bye

Download All
0 Kudos
Message 6 of 7
(7,765 Views)

It probably has to do with your cRIO because it runs the VXWorks operating system. There are known issues with VXWorks dealing with Daylight Savings. Check out this article, I hope it helps.

 

http://digital.ni.com/public.nsf/allkb/7E5CB910B1685C8B8625731A005FCB62?OpenDocument

National Instruments
Applications Engineer
0 Kudos
Message 7 of 7
(7,742 Views)