Author Topic: Time sync system clock R&S RTB2004  (Read 3858 times)

0 Members and 1 Guest are viewing this topic.

Online tautech

  • Super Contributor
  • ***
  • Posts: 28382
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: Time sync system clock R&S RTB2004
« Reply #25 on: June 04, 2023, 08:21:55 am »
But to put this into perspective: I have several recent and not-always-so-cheap instruments in my lab that have no time and date setting at all!!<snip> The files created on a USB stick etc. carry time stamps like “30 Dec 1999 at 23:00”. Oef!
Now there's a project for you to check which instruments you have that keep the most accurate time.
At the risk of derailing this nice R&S thread, I have to say that the Siglent SDG1000X arbitrary wave generator (and probably its siblings) gets a special mention for waking up at each power-on thinking it is midnight, January 1, 1970.  :-//
   I actually modified pdenisowski's Python script to set the time and date of the SDG, but there is really not much point since the data is volatile and resets on every power cycle. In case anyone is interested, though, that modified script is attached.
Correct, these models make no claim of having a RTC so Linux default time it is.
Avid Rabid Hobbyist
Siglent Youtube channel: https://www.youtube.com/@SiglentVideo/videos
 

Offline R.J.Topic starter

  • Contributor
  • Posts: 21
  • Country: nl
  • Don't take "broken" for an answer!
Re: Time sync system clock R&S RTB2004
« Reply #26 on: February 16, 2024, 03:30:41 pm »
Done another measurement where the values had to be saved where the measurement is at a time in the future.
I understand it has to do with summer and winter time. However, you only find out when you have already saved the measurement. After all, the measurement is already recorded on USB stick.
If the scope had copied the correct date and time from, in this case the router acting as an NTP server in the network, this problem would not occur.
Every device in the network (Managed switches and home automation devices) uses the router as time synchronisation, but an expensive scope from a reputable brand does not (???)
See the attached screenshot.
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 26907
  • Country: nl
    • NCT Developments
Re: Time sync system clock R&S RTB2004
« Reply #27 on: February 16, 2024, 03:59:30 pm »
Having an NTP server / client is not going to help you as NTP distributes UTC time. What would be needed is being able to setup the time zone with the correct daylight savings. Besides equipment running an OS like Linux or Windows, I have not seen any equipment with this capability. So what the RTB2004 is doing, is not out of the ordinary at all.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline R.J.Topic starter

  • Contributor
  • Posts: 21
  • Country: nl
  • Don't take "broken" for an answer!
Re: Time sync system clock R&S RTB2004
« Reply #28 on: February 16, 2024, 09:22:21 pm »
In the scope, there is an option to set the date and time in a menu. How easy would it then be to include the option for the correct time zone?
By decoding the SNTP protocol and including it in the scope's firmware, the date/time parameters of the internal clock can then be synchronised.
SNTP time synchronisation is implemented in the smallest hardware, take an ESP32 from Espressif for example. Why there??
It is just extremely irritating and frustrating that such a device as a scope with all the options of ±€9300,= is not equipped with this (standard) functionality while data with date and time (such as screenshots and measurements) can be saved in a file for later diagnosis and processing.
The implementation of such a piece of SNTP-sync software might well be a standard in the more expensive/most expensive segment of these measuring devices(???)
Very unfortunate that they did not then include it in the "entry-level" models when it is available (???).
If the higher-end measuring equipment does not have time synchronisation, then the manufacturers have made a big mistake.

A measurement is something fleeting and can occur once. How important it is then to have the correct and exact date and time of that event and to be able to record it in a file with the proper date and time stamp.



 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 11536
  • Country: ch
Re: Time sync system clock R&S RTB2004
« Reply #29 on: February 16, 2024, 10:13:45 pm »
In the scope, there is an option to set the date and time in a menu. How easy would it then be to include the option for the correct time zone?
Probably a lot more complex than you think,* but still trivial since there are libraries that can do it, and the scope certainly has enough storage and CPU to handle it.

*time zones are one thing, but different countries switch to/from summer and winter time at different times, using different rules, so automatic switching, at least, is a lot more complex under the hood than just a checkbox.
 

Offline Kean

  • Supporter
  • ****
  • Posts: 2095
  • Country: au
  • Embedded systems & IT consultant
    • Kean Electronics
Re: Time sync system clock R&S RTB2004
« Reply #30 on: February 17, 2024, 11:30:42 am »
Time zone data is quite big (for an embedded system) at more than 500kB compressed.  Maybe not a lot for recent hardware, but it does make the user interface for tz selection non-trivial.
It also changes quite frequently, with 197 commits and 71 releases over just the last 8 or 9 years (tzdata-info on github), so now you have an ongoing maintenance issue.
So what seems like a quite simple problem, actually becomes a reasonably complex problem to correctly address for all potential users.  I wish we could do away with summer/winter time changes.
 
The following users thanked this post: nctnico, tooki

Offline tooki

  • Super Contributor
  • ***
  • Posts: 11536
  • Country: ch
Re: Time sync system clock R&S RTB2004
« Reply #31 on: February 17, 2024, 01:25:53 pm »
I wish we could do away with summer/winter time changes.
I agree 100000%.
 

Online 2N3055

  • Super Contributor
  • ***
  • Posts: 6662
  • Country: hr
Re: Time sync system clock R&S RTB2004
« Reply #32 on: February 17, 2024, 01:51:01 pm »
Time zone data is quite big (for an embedded system) at more than 500kB compressed.  Maybe not a lot for recent hardware, but it does make the user interface for tz selection non-trivial.
It also changes quite frequently, with 197 commits and 71 releases over just the last 8 or 9 years (tzdata-info on github), so now you have an ongoing maintenance issue.
So what seems like a quite simple problem, actually becomes a reasonably complex problem to correctly address for all potential users.  I wish we could do away with summer/winter time changes.

It is a case of overthinking. A simple manual time offset (+2h UTC, or -4h UTC) and user need to twice a year set it right would address 99.99% of problems. Point in fact, it would be faster than searching linear list for your town/coutry/region setting..
 

Offline Kean

  • Supporter
  • ****
  • Posts: 2095
  • Country: au
  • Embedded systems & IT consultant
    • Kean Electronics
Re: Time sync system clock R&S RTB2004
« Reply #33 on: February 17, 2024, 02:24:45 pm »
It is a case of overthinking. A simple manual time offset (+2h UTC, or -4h UTC) and user need to twice a year set it right would address 99.99% of problems. Point in fact, it would be faster than searching linear list for your town/coutry/region setting..

Yes, in fact this is what I typically implement on embedded systems.  Sometimes there is a central server that pushes out TZ offset changes.  Where possible, we just use UTC.  And the UTC time is usually spot on due to NTP or GPS sync.

But R.J. complained about both lack of time sync and TZ offset correction - his image shows the time on the scope as 59 minutes fast.
 
The following users thanked this post: 2N3055

Offline R.J.Topic starter

  • Contributor
  • Posts: 21
  • Country: nl
  • Don't take "broken" for an answer!
Re: Time sync system clock R&S RTB2004
« Reply #34 on: February 18, 2024, 11:26:57 pm »
There are scopes who sync there internal OS-clock with the router on it's network!!!  :P
https://siglentna.com/application-note/datalogging-with-the-four-channel-sds1000x-e-oscilloscope-models/
So this is what I want to see in the R&S RTB200x....... :o When powering the scope, it's syncs the internel clock. That's all.
 

Online tautech

  • Super Contributor
  • ***
  • Posts: 28382
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: Time sync system clock R&S RTB2004
« Reply #35 on: February 18, 2024, 11:58:01 pm »
There are scopes who sync there internal OS-clock with the router on it's network!!!  :P
https://siglentna.com/application-note/datalogging-with-the-four-channel-sds1000x-e-oscilloscope-models/
So this is what I want to see in the R&S RTB200x....... :o When powering the scope, it's syncs the internel clock. That's all.
Not exactly.

X-E range DSO's have no internal clock until the NTP feature was introduced to support the new Logging feature.
This requires a WAN connection to your local NTP server via LAN or WiFi when your local timezone is also required to be set.
Avid Rabid Hobbyist
Siglent Youtube channel: https://www.youtube.com/@SiglentVideo/videos
 

Offline R.J.Topic starter

  • Contributor
  • Posts: 21
  • Country: nl
  • Don't take "broken" for an answer!
Re: Time sync system clock R&S RTB2004
« Reply #36 on: February 21, 2024, 02:24:15 pm »
It is exactly what I mean.
To take measurements and save them on a USB-stick, the date/time stamp is important.
Because now the OS's internal clock is never synced with the correct (NTP) time when the scope is switched on, the time of the file containing the measurements is not correct at all.
Especially when changing summer/winter time.
The issue is not whether the Operating Software clock should be exactly the same to the second or tenths of a second, it is about the internal OS clock being synchronised when turning on the scope so that the stored files are provided with the correct time and date stamp.
So exactly as it happens with the Siglent for logging measurements.
 

Offline R.J.Topic starter

  • Contributor
  • Posts: 21
  • Country: nl
  • Don't take "broken" for an answer!
Re: Time sync system clock R&S RTB2004
« Reply #37 on: February 28, 2024, 09:31:20 pm »
Here is an example of a multimeter from GW-Instek in which the internal clock can be synchronised over the LAN connection by using an NTP server on the Internet, as it should be.
When the local router is the NTP-server you can use the router address.
The pictures are a part of the manual for the GDM-906X benchtop multimeter.
On pages 139/140 of the manual show the settings.

So there are instruments that can sync their RTC by using NTP time servers.
Such an implementation is just a piece of software.
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 11536
  • Country: ch
Re: Time sync system clock R&S RTB2004
« Reply #38 on: March 04, 2024, 09:05:34 pm »
So there are instruments that can sync their RTC by using NTP time servers.
Duh. Nobody ever said otherwise.

Such an implementation is just a piece of software.
Obviously. Nobody said a hardware RTC is the sole way to solve this problem.
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 11536
  • Country: ch
Re: Time sync system clock R&S RTB2004
« Reply #39 on: March 04, 2024, 09:12:35 pm »
There are scopes who sync there internal OS-clock with the router on it's network!!!  :P
https://siglentna.com/application-note/datalogging-with-the-four-channel-sds1000x-e-oscilloscope-models/
So this is what I want to see in the R&S RTB200x....... :o When powering the scope, it's syncs the internel clock. That's all.
No, it’s not syncing with the router, it’s syncing with whatever NTP server you tell it to. Most of the time that will NOT be your local router.

I’m puzzled as to why “router-as-NTP-server” occupies such a prominent place in your headspace, since that’s a comparatively rare configuration.
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 26907
  • Country: nl
    • NCT Developments
Re: Time sync system clock R&S RTB2004
« Reply #40 on: March 04, 2024, 09:22:43 pm »
There are scopes who sync there internal OS-clock with the router on it's network!!!  :P
https://siglentna.com/application-note/datalogging-with-the-four-channel-sds1000x-e-oscilloscope-models/
So this is what I want to see in the R&S RTB200x....... :o When powering the scope, it's syncs the internel clock. That's all.
No, it’s not syncing with the router, it’s syncing with whatever NTP server you tell it to. Most of the time that will NOT be your local router.
It depends a bit on how the network is setup. DHCP has a field that can tell a client which NTP server to use so routers can use that to announce NTP servers to clients. For example: the internet router that is supplied by my internet provider comes pre-configured with NTP servers and it likely includes the NTP servers' information as part of the DHCP fields it supplies to clients. In other words, it is not outlandish to think that an internet router can play a role in a plug&play NTP configuration of devices on the network.
« Last Edit: March 05, 2024, 06:21:31 pm by nctnico »
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 11536
  • Country: ch
Re: Time sync system clock R&S RTB2004
« Reply #41 on: March 05, 2024, 06:19:50 pm »
Sure, but that’s still not the same thing as the router being the NTP server.
 

Offline R.J.Topic starter

  • Contributor
  • Posts: 21
  • Country: nl
  • Don't take "broken" for an answer!
Re: Time sync system clock R&S RTB2004
« Reply #42 on: March 14, 2024, 09:25:36 pm »
I mentioned it before, see reply #14 in this topic.

Yes the router acts as a NTP-server and every router has de ability to do so!All the network clients can use the routers IP-address as the NTP-server, your IOT-devices, laptops etc....The router can be used if the ability is in the client to synchronise with an ntp server.

Furthermore, time-synchronisation is essential within a network.
After all, all servers and clients must have the same time, as otherwise logging on within the network is not possible with a large time difference between clients and servers.
Also, if there is no time synchronisation, the various internal clocks of clients will always be out of sync and the content of events in log files will be meaningless.

 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 11536
  • Country: ch
Re: Time sync system clock R&S RTB2004
« Reply #43 on: March 15, 2024, 08:17:43 am »
I mentioned it before, see reply #14 in this topic.

Yes the router acts as a NTP-server and every router has de ability to do so!
Your router has that option, but most do NOT. As I said, that’s a rare configuration, generally speaking.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf