[App] libsetTVTime (set TV time from NTP server) (C/D/E)

Here are software that related with Samsung C series TVs, applications, programs that will run in your TV or computer...:!:This forum is NOT FOR USER QUESTIONS or Problems.
Post Reply

rapperskull
Posts: 11
Joined: Sun Sep 01, 2013 9:18 pm

[App] libsetTVTime (set TV time from NTP server) (C/D/E)

Post by rapperskull »

This library is the opposite of this one: it sets the TV clock (exeDSP time) to system time when injected.
Before using it, you have to set the system time (it resets at every reboot), or simply follow the instructions below to set the correct time at every boot.
If you pass a timezone as a parameter, it will also set the DST flag automatically, and correct for a wrong time zone set on the TV.
The timezone database is from micro_tz_db.

The library should work at least up to E series, but I have tested it only on C series.

On C series $SYSROOT is usually /dtv/usb/sda/SamyGO

Usage:
  1. Set TV Country and Time Zone (if applicable)
  2. Set the Clock Mode to Auto
  3. Install latest SamyGOso from here:
    • Copy samyGOso file to $SYSROOT/opt/privateer/usr/bin
    • Set permissions (not needed on C series since $SYSROOT is on USB):

      Code: Select all

      chmod +x $SYSROOT/opt/privateer/usr/bin/samyGOso
  4. Extract attached archive and copy libsetTVTime.so to $SYSROOT/opt/privateer/usr/libso
  5. To get the time from NTP server:
    • Download and extract the latest version of ntpclient from here
    • Copy ntpclient file to $SYSROOT/opt/privateer/usr/bin
    • Set permissions (again not needed on C series):

      Code: Select all

      chmod +x $SYSROOT/opt/privateer/usr/bin/ntpclient
  6. Check if everything works correctly:
    • Update system time (replace $NTPSERVER with your preferred NTP server):

      Code: Select all

      ntpclient -s -h $NTPSERVER -p 123
    • Inject the library (replace $TIMEZONE with the appropriate time zone string):

      Code: Select all

      samyGOso -d -A -B -l $SYSROOT/opt/privateer/usr/libso/libsetTVTime.so $TIMEZONE
  7. To make it permanent:
    • Edit 02_99_setNtpTime.init with your preferred NTP server and time zone
    • Copy 02_99_setNtpTime.init to $SYSROOT/etc/init.d
    • Set permissions (again not needed on C series):

      Code: Select all

      chmod +x $SYSROOT/etc/init.d/02_99_setNtpTime.init
As for the NTP server, you can leave the default one, or choose one from ntppool.org.
For the timezone, you can check the list of supported ones in the micro_tz_db source code.

Source code is available on GitHub
You do not have the required permissions to view the files attached to this post.

Post Reply

Return to “[C] Software”