GHI Electronics,LLC USBwiz User Manual
USBwiz Command Set
7. USBwiz Command Set
All commands below are entered in ASCII. We choose to use ASCII to simplify
troubleshooting and to allow humans to enter commands easily. A special case is when
accessing the data inside or outside a file. When writing/reading to/from a file or USB Pipe,
USBwiz will use any kind of data. Basically, what you send is what goes on the file. It
doesn’t have to be ASCII.
When USBwiz is done processing a command, it will return an error code in the form “!
xx<CR>” where xx is the error number. Also, some commands require returning some
extra information. Returned data will come after the symbol $, unless noted otherwise.
You can send multiple commands to USBwiz until its FIFO is full (indicated by BUSY or
RTS.) USBwiz will take the commands in one at the time, process them and send
responses for each one. Always terminate commands with carriage return character.
Command Description Command Description
BL Update Firmware IT Initialize Real Time Clock
ST Set Real Time Clock GT Get Current Real Time Clock
VR Get Version Number BR Set UART Baud Rate
RT Reset Firmware EE Enable/Disable Echo
RS Read Sector WS Write Sector
FM Mount File System DS Device Switch
II Get USB Device Info UM Register USB Mass Storage
SD Initialize SD card MS Get Media Statistics
QF Quick Format Media IL Initialize List Files and Folders
NF Get Next Directory Entry MD Make Directory
CD Change Directory RD Remove Directory
OF Open a file for read, write or
append
CF Close File Handle
FF Flush File Data RF Read from File
WF Write to File SH Shadow Write to multiple Files
RW Read from File, Write to other
file
SF Split file
PF Seek File FP Get Current File Pointer
Position
Rev.2.27 Page 33 of 64 www.ghielectronics.com
Commentaires sur ces manuels