Application for SitePlayer v1.5 and above
10940 N. Stallard Pl.
Tucson, Arizona 85737
TEL: (520) 544-4567
FAX: (520) 544-0800
DISCLAIMER OF ALL WARRANTIES AND LIABILITY:
NETMEDIA, INC. MAKES NO WARRANTIES, EITHER
EXPRESSED OR IMPLIED, WITH RESPECT TO THIS
DOCUMENT OR WITH RESPECT TO THE SOFTWARE
DESCRIBED IN THIS DOCUMENT, ITS QUALITY,
PERFORMANCE, MERCHANTABILITY, OR FITNESS FOR
ANY PARTICULAR PURPOSE. NETMEDIA, INC.
SOFTWARE IS SOLD OR LICENSED "AS IS". IN NO
EVENT SHALL NETMEDIA, INC. BE LIABLE FOR
INCIDENTAL OR CONSEQUENTIAL DAMAGES
RESULTING FROM ANY DEFECT IN THE SOFTWARE.
PC2SPUDP is a Microsoft Visual Basic 6 program that
demonstrates how to send and receive UDP packets
between a PC and SitePlayer. It differs from the UDP Send
Tester program included with the SitePlayer software in that
it also tests and demonstrates SitePlayer's ability to receive
PC2SPUDP will instruct SitePlayer, via a UDP packet, to
send back another UDP packet as defined by setup values
submitted by this program. It binds to the PC's IP and Port
address via the Winsock UDP protocol. It was designed for
use with the SPK1 developer board and the factory demo
but it can be modified to work as you please; the VB6
source code is included.
1) Run PC2SPUDP.EXE.
2) Enter the IP address of the PC's network card into the
MY IP boxes.
3) Enter the MAC address of the PC's network card into the
MY MAC boxes.
4) Enter the Port that it will listen on in the MY PORT box.
5) Enter SitePlayer's IP address into the SP IP box.
6) Enter the starting Memory address for the data that will
be transmitted into the SP MEMORY ADDRESS boxes.
7) Enter the data that will be transmitted into the MEM
8) When using the HTTP method of enabling UDPrcvr,
enter the name of the SitePlayer .SPI filename if it is not the
default Factory2.spi. When using the serial port method of
enabling UDPrcvr, enter the correct PC COM port into the
PC COM Port box.
9) Press the HTTP or Serial "UDPrcvr ON" buttons to
enable SitePlayer to receive UDP packets.
10) Press the BIND PORT button to connect to the PC
11) Press the "Send Setup Info to SP" button to initialize the
potential UDP data in SitePlayer. This includes the following:
the PC's IP and MAC address (MY IP and MY MAC); the
PC's UDP port (MY PORT); SitePlayer's starting Memory
address for the UDP data (SP MEMORY ADDRESS); the
UDP data that will reside in that memory address and be
sent out as the UDP packet (MEM VALUE). SitePlayer
currently listens for UDP packets on one port, 26482.
12) Press the "Send UDPsend to SitePlayer" button to
instruct SitePlayer to send the UDP packet as configured
when the "Send Setup Info to SP" button was pressed. The
UDP data from SitePlayer will appear in the UDP In box.
The RED ON/OFF and GREEN ON/OFF buttons
demonstrate how to toggle the red and green LEDs (I/O bits
3 and 4) of the developer board by using UDP commands.
You must use SitePlayer firmware v1.5 or later in order to
send and receive UDP packets. You should also download
the software setup dated 07.03.01 or later which includes
the Factory demo w/UDP features, the UDPsend_def.inc
file, and the updated documentation. Ensure that the
SitePlayer UDP settings in the UDPsend_def.inc are
compatible with those specified in the PC2SPUDP PC IP
and PC Port fields. The defaults should work without editing.
See the SitePlayer Software Manual for more information
concerning UDP packets and commands.
Included PC2SPUDP Application Files:
PC2SPUDP.EXE Executable program file
UDP.FRM VB Form file
PC_UDP.VBP VB Project file
PC2SPUDP.TXT This text file
SitePlayer Serial COM ActiveX Control files:
The following VB support files may also be included:
Copyright © 2004 NetMedia, Inc. All Rights Reserved
Visual Basic is a Trademark of Microsoft, Inc.