Change Time settings
Change Date and Time and TimeZone from the GUI
Go to the Network & Time tab
Select the TimeZone value to drop-down list.
Click on "Save"
Click on the Date icon on the right. A pop-up window will open with a calendar, then select the correct settings.
Click on the Time icon on the right. A pop-up window will open with a time table, then select the correct settings.
Once the Date and Time is set click on "Save"
Change Timezone from API REST
The system is configured in UTC (Coordinated Universal Time).
The Timezone is controlled by 3 commands:
Get available TimeZones
HTTP GET
http://192.168.1.91:3161/devices/AdvanReader-m4-150/MCU/parameter/MCU_TIMEZONE_LIST. Change IP to the real IP of the system.
Change TimeZone
HTTP PUT
http://192.168.1.91:3161/devices/AdvanReader-m4-150/MCU/parameter/MCU_TIMEZONE. Change IP to the real IP of the system.
Content: one of the entries in the GET command. For example: Europe/London or America/Chicago.
Get current TimeZone
HTTP GET
http://192.168.1.91:3161/devices/AdvanReader-m4-150/MCU/parameter/MCU_TIMEZONE. Change IP to the real IP of the system.
The response follows RFC822:
<response>
<type>response</type>
<ts>1404391801000</ts>
<status>OK</status>
<msg-version>2.1.0beta</msg-version>
<op>MCU/parameter/MCU_TIMEZONE</op>
<data>
<result>+0200</result>
</data>
</response>
For convenient reasons, the TimeZone is set as a region plus city, while the value is retrieved as the TimeZone according to RFC822: ("+" | "-") 4DIGIT
For example setting the time as Europe/Paris will result on a real TimeZone of +0100 (Central European Time) or +0200 (Central European Summer Time)
Change Date and time from API REST
The system time works as follows:
If the system is connected to an Internet enabled network, the date and time is automatically updated through NTP (Network Time Protocol)
If the system is not connected to the network or does not have Internet access, the system date will only be updated if it uses a battery-enabled Real Time Chip. Only the following readers and derived systems do have such RTC chip
AdvanReader-m2-60
AdvanReader-m4-150.04: note AdvanReader-m4-150.03 do not have such RTC chip
The system date and time can be manually updated by issuing an HTTP PUT request.
The following are the two methods to control the system date and time
Get current Date and Time
HTTP GET
http://192.168.1.91:3161/devices/AdvanReader-m4-150/MCU/parameter/MCU_DATETIME. Change IP to the real IP of the system.
The response is as follows:
<response>
<type>response</type>
<ts>1404391463000</ts>
<status>OK</status>
<msg-version>2.1.0beta</msg-version>
<op>MCU/parameter/MCU_DATETIME</op>
<data>
<result>07/03/2014 12:44:23 PM</result>
</data>
</response>
Where: 07/03/2014 12:44:23 PM follows the pattern MM/dd/yyyy HH:mm:ss a
Change Date and Time
HTTP PUT
http://192.168.1.91:3161/devices/AdvanReader-m4-150/MCU/parameter/MCU_DATETIME. Change IP to the real IP of the system.
Content: the date and time expressed as MM/dd/yyyy HH:mm:ss a
Whenever the TimeZone and Date must be update, issue the commands in the following order:
Change the TimeZone.
Change the Date and time.
In case the system is connected to Internet but it is required to use a specific Date and Time it would be required to stop the NTP server. Please contact support@keonn.com to request instructions.
Alternatives to keep date/time updated
In case the reader and/or system does not have a RTC chip and cannot use NTP. the following are alternatives to keep the date/time updated.
Use a local NTP server.
Use REST calls to keep the date/time updated periodically.