beautypg.com

Usb mode for sf-3040 only – NavCom Sapphire Rev.J User Manual

Page 237

background image

Sapphire Technical Reference Manual Rev. J

237

Issuing a [USBMODE]HOST command through the USB port results in a
COMMAND FAILED error message because executing this command
disconnects the USB port.

Issuing a [USBMODE]DEVICE,MASSSTORAGE command through the USB
port results in a COMMAND FAILED error, since executing the command
would result in disconnecting the USB port.

Removing the USB cable when the USB port is in an open state in StarUtil
3000 results in connection difficulty when the USB cable is plugged back into
the PC. If this happens, the receiver must be power cycled, or StarUtil 3000
restarted, to recover the connection. The best practice is to close the USB
port from StarUtil 3000 first, and then remove the USB cable.

Changing the USB mode from COM port to other modes when the USB port
is in an open state in StarUtil 3000 results in connection difficulty when the
USB mode is switched back to COM port mode. If this happens, power-cycle
the receiver or restart StarUtil 3000. The best practice is to first close the
USB port from StarUtil 3000 and then use the [USBMODE] command to
switch to USB mode.

1.202.2

USB Mode for SF-3040 Only

On-the-Go (OTG) works by detecting whether the USB_ID pin is grounded or high. Special USB
cables are required for the OTG feature. When the USB device cable is plugged in, Device
Mode is engaged. When the USB host cable is plugged in, Host Mode is engaged.

Command:

[USBMODE]{mode, option}

Parameter

Definition

Mode Keywords

Host

USB Host mode

Device

USB Device mode

Option Keywords (Device mode
only)

Com_Port

USB virtual com port mode (default)

Mass_Storage

USB mass storage mode

Default: If no Device mode option keyword is specified, the USB defaults to Com_Port.

When the USB is in OTG HOST mode and the user enters the command [USBMODE]

without any parameters, the receiver returns the current mode: OTG HOST.

When the USB is in OTG

HOST mode and the user enters the command “[USBMODE]

device”, the receiver returns the current mode: OTG HOST.

When the USB is in OTG HOST mode and the user enters the command “[USBMODE]
host”, the receiver returns the current mode: OTG HOST.

When the USB is in OTG DEVICE mode and the user enters the command [USBMODE]

without any parameters, the receiver returns the current mode: OTG DEVICE : xx, where
“xx” is either “COM_PORT” or “MASS_STORAGE”.