Hardware Information: Ford UBP card


External D-9 connector pinout

Pin # Channel Assignment
011VREF+
021GND
031UBP BUS
041No Connect
051VIN+
061No Connect
071No Connect
081No Connect
091VIN-

VREF+

VREF+ (Pin 1) must be connected to the vehicle's positive battery voltage. This connection provides a positive voltage reference to the UBP transceiver. This connection does NOT supply operating power to the .

BUS termination requirements

The UBP module can either be used with internal termination or external termination. This is set with a jumper located on the module. If external termination is desired, place a resistor between pin 1 (VREF+) and pin 3 (UBP BUS). This module ships with a default setting of external termination.

Event definitions

The following values may be transmitted as FT_EVENT type GCProtocol frames.
The event value will be in the event field of such a frame.
Note: Please see the include file dev_ubp.h for numeric values of the following symbols.

Event nameEvent meaning
GUBPNACKNegative Acknowledgment
GUBPTXFAILLIMITTransmit "Fail" Limit Reached
GUBPTXFAILECHOUnable to see echo of Transmitted Message
GUBPCHSMERRChecksum Error
GUBPLENERRIncorrect Message Length
GUBPTIMEOUTUnable to Transmit Message
GUBPUARTERRUART Error
GUBPRESETCard (HC08) has been reset
Please also see generic events for non card-specific events.


Card-specific IOCTL definitions

These values are used with the CMD_CARD_IOCTL command.
Please see the include file dev_ubp.h for numeric values of IOCTLS and data field bit assignments.

IOCTL nameFunctionData field length/purpose
GUBPGETINTERBYTE Get Interbyte Gap2 data bytes returned
GUBPSETINTERBYTE Set Interbyte Gap2 data bytes
GUBPGETNACKMODE Get NACK Mode2 data bytes returned
GUBPSETNACKMODE Set NACK Mode2 data bytes
GUBPGETRETRYDELAY Get Retry Delay Time1 data byte returned
GUBPSETRETRYDELAY Set Retry Delay Time1 data byte
GRESETHC08 Reset Card (HC080)0 data bytes
GTESTHC08COP Test the COP (Computer
Operating Properly) module
0 data bytes

notes:

GRESETHC08 causes the driver to perform a hard reset of the HC08 on the UBP card. A GUBPRESET event is reported while the card's firmware is restarting.

If the main loop of the card's firmware takes more than 16.83 milliseconds between any two passes, the HC08's watchdog expires and resets the processor. A GUBPRESET event is reported while the card's firmware is restarting.

GTESTHC08COP prevents the watchdog timer from being reset in the firmware's main loop. If everything is working properly, a GUBPRESET event will be reported within 16.38 milliseconds when the watchdog timer expires.


Card-specific functionality

The UBP card computes the checksum for when sending messages to the network. Any checksum included in a FT_DATA packet sent to the card is ignored. When receiving messages from the network, the checksums are verified and then discarded. A complete UBP message in a FT_DATA packet to or from the card does not include the checksum byte.

The card can be made to send a NACK under program control by setting the least significant bit in the Status field of the Data Header for either a CMD_CARD_TX command or an FT_DATA frame and sending it to the card. The driver ignores the header and data fields and causes the card to place a NACK on the bus.