How to send IFRs using HBCC module using IOCTLs

Send IFR Type#1

Set up a Gryphon to transmit the IFR Type#1 message. Telnet to Gryphon as root. The example session looks as follows

gryphon# gioctl localhost -c 3 -i 0x11100001 -d 0x01 
IOCTL command response: 0 = OK 
IOCTL return data : 01 
gryphon# gioctl localhost -c 3 -i 0x11300004 -d 0x08 
IOCTL command response: 0 = OK 
IOCTL return data : 08 
gryphon#

Send IFR Type#3

Set up a Gryphon to respond with 1 byte of data for the IFR Type#3 message. Telnet to Gryphon as root. The example session looks as follows

gryphon# gioctl localhost -c 3 -i 0x11100001 -d 0x01 
IOCTL command response: 0 = OK 
IOCTL return data : 01 
gryphon# gioctl localhost -c 3 -i 0x11300004 -d 0x12 
IOCTL command response: 0 = OK 
IOCTL return data : 12 
gryphon# gioctl localhost -c 3 -i 0x11300007 -d 0x30 
IOCTL command response: 0 = OK 
IOCTL return data : 30 
gryphon# gioctl localhost -c 3 -i 0x1130000A -d 0x01 0x99 
IOCTL command response: 0 = OK 
IOCTL return data : 01 99 

Send a request from some other source with the message - 
H : 0x43 0x30 0x08 

No data is required for this message. If a telnet session is still active on Gryphon then gryphrx can be used to view the session as follows:

gryphon# gryphrx localhost 

Server at localhost: Gryphon, ver. 2.0, serial 00:90:5A:00:00:B2 
Server configuration: 5 devices (*=RCV ON) 

Ch. 1 * Type 02/01. DG-CAN-82527 ver.2.0, Ds=00-08, Es=00-00, Hs= 2 4 
Ch. 2 * Type 02/01. DG-CAN-82527 ver.2.0, Ds=00-08, Es=00-00, Hs= 2 4 
Ch. 3 * Type 03/01. DG-HBCC ver.2.0, Ds=00-07, Es=00-08, Hs= 3 
Ch. 4 * Type 04/01. DE-KWP2000 ver.1.1, Ds=00-FE, Es=00-01, Hs= 1 2 3 4 
Ch. 5 * Type 03/03. DE-BDLC ver.1.0, Ds=00-1000, Es=00-00, Hs= 0 1 2 3 4 

000001 EV Card Ch 04: T: 7817031010 E: [43] Bus Idle D: FF FF 

000002 RX Ch 03: T: 7888487910 H: 43 30 08 D: E 34 99 25 
000003 RX Ch 03: T: 7906617300 H: 43 30 08 D: E 34 99 25 

Here same message has been transmitted twice. The byte value 0x34, which is the first byte in the extra data bytes, indicates the CRC field for the message. The second byte 0x99 is the actual data that we wanted it to respond. The third byte 0x25 is the CRC for the IFR data filed.

Following are the IOCTL values and definitions

0x11300001 GSCPGETBBR 
0x11300002 GSCPSETBBR 
0x11300003 GSCPGETID 
0x11300004 GSCPSETID 
0x11300005 GSCPADDFUNCID 
0x11300006 GSCPCLRFUNCID 
0x11300007 GSCPADDFUNCRID 
0x11300008 GSCPCLRFUNCRID 
0x11300009 GSCPGETFRDATA 
0x1130000A GSCPSETFRDATA 

This document was obtained from:

Dearborn Group, Inc.
(248) 488-2080
dg@dgtech.com
http://www.dgtech.com

Copyright © 2003 Dearborn Group Inc.