Examples | Shop
 
Siteplayer™ Serial Communication with the DS-LCDD1
(Using the SitePlayer Development Kit)
 
This example demonstrates the ease in which serial data can be transmitted from a Web Page and SitePlayer™ module. In this example, the DS-LCDD1 is connected directly to the serial port of the Siteplayer Development board.

This example consists of six separate documents that will interact with each other to create the application, these can be extracted from a zip file that can be downloaded
HERE.

SitePlayer™
Serial_Demo.SPD is a file used by Sitelinker™ for the initial variables. Here the IP Address, Sitefile, Sitepath and Includes, amongst others, are stated.

The setting of the Sitefile and Sitepath in Serial_Demo.SPD determines the SitePlayer Binary file (SPB) and the path and file allocations for the documents in this application respectively.

If the current settings are used from Serial_Demo.SPD, the files will be in the following allocations.

Sitefile “C:\Program Files\SitePlayer\Serial_Demo.spb”
Sitepath “C:\Program Files\SitePlayer\TR Demo2”

The file TR Demo2 contains the files:
“Serial.htm”, “Serial.SPI” and “SitePlayer_Logo.Gif”.

The .HTM file is the HTML web page. By changing settings in here, the websites appearance can be altered.

The .GIF file is called up by the Web page and is an image of the SitePlayer™ logo.

The .SPI (Serial Peripheral Interface) is a pointer for any external device link events that occur. In this application, when baud rate or any command are selected, the same web page is loaded.

The files “Serial_Demo.SPD”, “UDPsend_def.INC” and “pcadef_LCD.INC” are, in this application, allocated in “C:\Program Files\SitePlayer”.

The .INC files are used by the .SPD file to set up UDP and file allocations within SitePlayer itself. In the file “pcadef_LCD.INC”, Com is the serial port output, and baud is the baud rate for serial communication. These are used within the web page.


DS-LCDD1 Connection

The DS-LCDD1 has a serial connector on its back and should be connected as follows.

DS-LCDD1 - +5V - +5V on battery
Si - (SP) PC-RX (see SitePlayer TM schematic in product documentation)
GND - GND
Common gnd should be connected to gnd on SitePlayer serial port also.

SiteLinker™
Sitelinker™ is used to download the web files to the SitePlayer. When using Sitelinker, ensure that the DS-LCDD1 is powered down so no serial communication will occur while the Sitelinker is downloading to SitePlayer.

In SiteLinker, Open “Serial_Demo.SPD”. Now select “Download” then “Make and Download”.

The Sitelinker creates an .SPB file, which is downloaded to the SitePlayer.

Select Browser and load http://192.168.1.250/Serial.htm. Power up the DS-LCDD1 and the application should be up and running.

SitePlayer is a Registered Trademark of Netmedia Inc.


Examples | Shop