Download SitePlayer Software Manual

Transcript
SitePlayer Software Manual
$ExportFile "C:\Program Files\SitePlayer\SP_Root\receiver_export.htm"
;$Export command creates HTML $ExportFile and clears parameters
$Export
;Export definitions for a Visual Basic formatted file
$ExportFormatFile "C:\Program Files\SitePlayer\makevb.def"
$ExportFile "C:\Program Files\SitePlayer\rcvrdefs.bas"
$Export
;Export definitions for a C header file
$ExportFormatFile "C:\Program Files\SitePlayer\makec.def"
$ExportFile "C:\Program Files\SitePlayer\rcvrdefs.h"
$Export
;Export definitions for an Assembly file
$ExportFormatFile "C:\Program Files\SitePlayer\makeasm.def"
$ExportFile "C:\Program Files\SitePlayer\rcvrdefs.asm"
$Export
Definition Section
The Definition section of the definition file determines SitePlayer’s initial setup parameters. The definitions are preceded by a
dollar sign ($) and are controls specific to SitePlayer. No spaces or tabs are allowed between the dollar sign and the body of
the control.
From the Receiver example, the definition section looks like this:
;$devicename sets the name or description of the device
$devicename "NetMedia Audio Receiver Demo"
;$DHCP on sets SitePlayer to find its IP address from a DHCP server
$DHCP on
;$DownloadPassword sets password for downloading web pages (and firmware)
$DownloadPassword ""
;$InitialIP sets SitePlayer’s IP address to use if no DHCP server is available
$InitialIP "192.168.1.250"
;$PostIRQ on set SitePlayer to generate a low level IRQ on pin 11
$PostIRQ off
;$Sitefile sets the binary image filename that will be created
$sitefile "C:\Program Files\SitePlayer\rcvr.spb"
;$Sitepath sets the root path of the web pages for this project
$sitepath "C:\Program Files\SitePlayer\SP_Root"
;$Include sets the name of a file to include during make process
$Include "C:\Program Files\SitePlayer\pcadef.inc"
Descriptions for each of these variables are described in the following sections.
$DHCP [on, off] default on
This function defines whether the SitePlayer keeps a fixed IP address (off), or it obtains one from a DHCP server (on). DHCP
stands for Dynamic Host Configuration Protocol. Many routers, cable modems, and DSL modems support this feature. For
example if you carry a SitePlayer enabled device from one network to another, the DHCP server will allocate a local IP
address for the SitePlayer. This makes it very convenient for portable devices.
$DHCP on
Forces SitePlayer to look for a DHCP server to obtain an address. If SitePlayer cannot find a server, it will go to a default IP
address, see $InitialIP
4