Rooting

It is unknown what it does.
Write: ROOTING
Read: DDI

ATQ0

It is unknown what it does.
Write: ATQ0
Read: OKAY

RESET

Shuts down the device.
Write: RESET
Read: +RESET: OK\n

PROMPT

Write: PROMPT<command>
Read: <response>

Commands

Get environment data

This is not an actual, but “virtual” command that is only usable by using the PROMT. Would return all environment variables, stated below.
Command format: getenv. No arguments required.
Response format: [Name]: [Value]\n for each.

Set reboot mode

Command format: setenv REBOOT_MODE [value]
Response format: Unknown

Reboot values
NameValueInformation
REBOOT_MODE_NONE0x00Model’s Name
REBOOT_MODE_DOWNLOAD0x01Serial Code
REBOOT_MODE_UPLOAD0x02Used, purpose unknown
REBOOT_MODE_CHARGING0x03Unused?
REBOOT_MODE_FOTA0x04FOTA Updating Process
REBOOT_MODE_FOTA_BL0x05BOTA Update
REBOOT_MODE_SECURE0x06Modem Secure Error
REBOOT_MODE_NORMAL0x07Default Reboot Mode
REBOOT_MODE_FWUP0x08Emergency Firmware Update
REBOOT_MODE_EM_FUSE0x09Unused?
REBOOT_MODE_FACTORY_MD0xXAUnused?
REBOOT_MODE_FOTA_UP0x0BFOTA Setting Up
REBOOT_MODE_BOOTLOADER0xXCDownload (Odin) Mode
REBOOT_MODE_WIRELESSD_BL0xXDUnused?
REBOOT_MODE_RECOVERY_WD0x0ESkip AVB Main
REBOOT_MODE_FACTORY0x0FSamsung Factory Mode
REBOOT_MODE_POWEROFF_WATCH0xFDUnused?
REBOOT_MODE_WATCH_REBOOT_MODE0x10Unused?
REBOOT_MODE_CHARGING0x11Unused?
REBOOT_MODE_POWEROFF_BYKEY0x12Unused?

Enable/disable upload

Used mainly to do ramdumps, the way is unknown.
Command format: setenv FORCE_UPLOAD [value]
Response format: Unknown

Values
NameValue
KERNEL_SEC_FORCE_UPLOAD_DISABLE0x00
KERNEL_SEC_FORCE_UPLOAD_ENABLE0x05

Set debug level

Command format: setenv DEBUG_LEVEL [value]
Response format: Unknown

Debug Levels
NameValue
KERNEL_SEC_DEBUG_LEVEL_LOW0x4F4C
KERNEL_SEC_DEBUG_LEVEL_MID0x494D
KERNEL_SEC_DEBUG_LEVEL_HIGH0x4948
KERNEL_SEC_DEBUG_LEVEL_AUTO0x5541

Set default cmdline

Command format: setenv CMDLINE [value]
Tabs and quotes are not allowed.
Response format: Unknown

Values observed
NameValue
Default Valueconsole=ram loglevel=7
Non-Exynos UARTconsole=ttySAC0,115200n8 loglevel=7
Exynos UARTearlycon=exynos4210,0x10540000 console=ttySAC0,115200n8 loglevel=7

Set power margin

Command format: setenv POWER_MARGIN [value]
Values are unknown (not found in bootloader)

Save environment data

Response format: Unknown
Command format: saveenv

Restart the device

Response format: Unknown
Command format: reset

SECCMD

Commands:

0x01 - Forcefully set the warranty bit
0x02 - Clear EMC token

Write: SECCMD<command>
Read: <response>

DVIF

Write: DVIF
Read:

General: @#MODEL=<Product Name>;VENDOR=<Chip Vendor>;FWVER=<Revision>;SALES=<Region Code>;VER=<Build Version>;DID=<DID>;RAND=<Base64 Encoded random string>;TMU_TEMP=<CPU Temperature>@#
For UFS: @#UN=<UFS ID>;CAPA=<UFS Size>;PRODUCT=<UFS name>@#
For MMC: @#UN=<MMC ID>;CAPA=<GB Size>PRODUCT=<MMC name>@#