GP Industrial XP640 Programmer Software

Program history

The GP Industrial XP640 is a device programmer from the mid 1980s and this software allows it to be controlled remotely from a PC using a serial interface. The XP640 does not use a well defined protocol but instead provides a user interface intended for display on a serial terminal with each command generating output which is formatted differently. This makes the code to send commands to the programmer and receive the response much more complicated than it otherwise would be.

Supported platforms

Platform Version Required library
MS-DOS, FreeDOS GP.EXE  
Win95,Win98,WinME GP32.EXE (or GP.EXE)  
Windows NT,Windows 2000,Windows XP,Windows 7 (32 bit) GP32.EXE  
Windows XP,Windows 7 (64 bit) GP32.EXE  
RHEL 4.x,5.x,6.x CentOS 4.x,5.x,6.x Suse 9.1 (i386) gp (32 bit) librhtv.so.2.0.3, (libstdc++.so.6)
RHEL 4.x,5.x,6.x,7.x CentOS 4.x,5.x,6.x,7.x (x86_64) gp (64 bit) librhtv.so.2.0.3, (libgpm.so.1)

Notes:

The MS-DOS version GP.EXE displays an error when transferring a file to the XP640 when running in the NTVDM on Windows NT and later.

Screenshots

GP32.EXE on Windows 7

Supported programmer firmware versions

The application has been tested against the following firmware versions.

Firmware
1.3,2.1,2.3,2.5

Issues

1) The standard cable to use with RTS/CTS handshaking is shown below.

Programmer end PC serial port end
25 way male 25 way female
   
pin 1 PG connect to cable shield n/c
pin 2 TXD pin 3 RXD
pin 3 RXD pin 2 TXD
pin 4 RTS pin 5 CTS
pin 5 CTS pin 4 RTS
pin 7 SG pin 7 SG

or

Programmer end PC serial port end
25 way male 9 way female
   
pin 1 PG connect to cable shield n/c
pin 2 TXD pin 2 RXD
pin 3 RXD pin 3 TXD
pin 4 RTS pin 8 CTS
pin 5 CTS pin 7 RTS
pin 7 SG pin 5 SG

Note

a) RTS/CTS handshaking is required for file transfer to the XP640 and the "HANDSHAKE" option must be set to "Y" using the "PORT" key and "WORD FMT" menu on the XP640 keyboard. GPView will check that it is enabled on the XP640 and, if not, will display an error.

Using a USB-Serial cable

It should be possible to use a USB-Serial cable to connect the PC to the programmer when using GP32.EXE or gp.
I have performed some tests with GPView using such devices and the results can be seen here.

Latest release

Download the zip file containing executables for MS-DOS, WIN32 console and Linux (32 & 64 bit).

Please note that only the Intel Hex format is currently supported for file transfer and the serial format must be set to "INTEL HEX" using the "PORT" key and "SERIAL FMT" menu on the XP640 keyboard, then select the "SET PARAMETER" menu and press ENTER to save.

gp1.2.6.zip 23/03/17

Alternatively, GPView for MS-DOS can be run from the BBBD iso without installation.

Known GPView problems/issues

GPView has only been fully tested at a baud rate of 19200, using slower rates may cause it to fail.

Since only Intel Hex format is currently supported for file transfer if you wish to work with files in another format I recommend using the program SRecord to convert them available from here.

If the STOP key is pressed while in remote mode you should select "Disconnect" in GPView and then, after the REMOTE key is pressed, select "Connect".

Known XP640 issues

The file transfer to programmer command in remote mode is broken in firmware version 1.3 and GPView displays a message. However, you can transfer a file by using the "Stop" key to leave remote mode, pressing the "Serial in" key, entering the offset value and sending the file to the serial port using a terminal emulator program. Alternatively, you can use the XP640 file transfer scripts on the BBBD iso.

The XP640 firmware does not ensure that the format of its configuration data is compatible between revisions. If firmware is changed, the settings will need to be checked, especially the serial format which must be set to "INTEL HEX" as above.

home contact