To enter target computer RTOS commands, type the commands by using a keyboard attached to the target computer or by using an SSH utility (such as PuTTY) to send commands to the target computer from a development computer.
The target computer commands are case-sensitive. For more information, see Target Computer Command-Line Interface.
The command examples use the PuTTy SSH utility. You can download and install this utility from www.putty.org.
Boot the target computer.
Connect the development computer and target computer. In the MATLAB Command Window, type:
tg = slrealtime; connect(tg);
Start the SSH utility. This example uses PuTTY.
Load the PuTTY session for the target computer and click Open.
To configure the target computer date, log in to the PuTTY session as user
root
with password root
.
Set the time zone. This example sets the time zone to Eastern Standard Time.
# env TZ=EST5EDT # export TZ=EST5EDT # setconf _CS_TIMEZONE EST5EDT
Set the date and time. This example sets the date and time to September 10, 2019 at 11:25 AM.
# date 091011252019 Tue Sep 10 11:25:15 EDT 2019
Set the hardware clock from the system date and time.
# rtc -s hw