Command Server User Manual
Command Server User Manual
COMMAND SERVER
USER MANUAL
www.eepod.com
Table Of Contents
REVISION HISTORY ................................................................................................................................................1
1 INTRODUCTION ................................................................................................................................................2
1.1 INSTALLATION ..................................................................................................................................................2
1.2 SETUP ............................................................................................................................................................... 2
2 COMMAND SERVER SOCKET INTERFACE ............................................................................................... 3
2.1 COMMAND REFERENCE ....................................................................................................................................3
2.1.1 READ ........................................................................................................................................................ 3
2.1.2 PROG ........................................................................................................................................................ 3
2.2 EXAMPLE TEST PROGRAM ................................................................................................................................ 3
3 ACRONYMS ......................................................................................................................................................... 7
EEPod LLC ii
Release Date: Mar. 22, 2013 Command Server User Manual Revision: 1.04
REVISION HISTORY
1 INTRODUCTION
The Command Server is a small client-server Windows PC application that receiveds commands from a user application and sends the
commands to the MyCANIC over the virtual COM port USB connection. A single instance of the Command Server is capable of
communicating with multiple MyCANICs.
1.1 INSTALLATION
The Command Server is a standalone Windows executable and does not require any installation other than copying the program
to the target directory selected by the user.
1.2 SETUP
Setting up the command server for use with a user application involves connecting the MyCANIC(s) via USB with the Windows
Device Manager (under Control Panel) running and noting the virtual COM port of each MyCANIC. These COM port numbers
will need to be used by the user application for communicating with each MyCANIC using the commands listed in the following
sections.
2.1.1 READ
The READ command is used to start the automatic listening process on the tester and get the hardware and software part
numbers along with the serial number. This command will also clear DTCs.
Example: 6 READ FCTP 0x56
This example command will start the automatic listening process (using EQ $56) on the tester and, after the operator has
selected ‘Yes’ to pass the test, it will read the part numbers and serial number of the FCTP amplifier connected to the
MyCANIC on virtual COM port 6 (COM6). The successful response to this command will be “6 READ OK <Hardware Part
Number> <Software Part Number> <Serial Number>”. An unsuccessful response to this command would be “6 READ
FAIL <description>”, where <description> will be an ASCII string to describe the type of failure. The network architecture
types that will be supported are CIP(CMC), CTP, FCTP and CUSW(FCIP). NOTE: Network type “500” is the Fiat 500 CTP
architecture.
2.1.2 PROG
The PROG command is used to program an amplifier with a specific file.
Example: 6 PROG FCTP
This command will program the amplifier connected to the MyCANIC on virtual COM port 6 (COM6) with the file that
matches the hardware part number read from the amp (05091066.BIN in this case) using the FCTP network architecture and
protocol. Note that the file 05091066.BIN must already be present on the SD card of the MyCANIC. The successful
response to this command will be “6 PROG OK <Hardware Part Number> <Software Part Number> <Serial Number>”. An
unsuccessful response to this command would be “6 PROG FAIL <description>”, where <description> will be an ASCII
string to describe the type of failure. The network architecture types that will be supported are CIP(CMC), CTP, FCTP and
CUSW(FCIP).
if (wsa_started == FALSE)
{
/* Startup Windows sockets if not already started */
if (WSAStartup(0x202, &wsa_data) == SOCKET_ERROR)
{
printf("WSAStartup() failed with error %d\n", WSAGetLastError());
WSACleanup();
return (-1);
}
/* Setup the server address information */
addr_server.sin_family = AF_INET;
addr_server.sin_addr.s_addr = inet_addr(server_address);
addr_server.sin_port = htons(PORT_NUMBER); // Port
3 ACRONYMS
ASCII American Standard Code for Information Interchange
CAN Controller Area Network
IP Internet Protocol
PC Personal Computer