How to send a message to the Gryphon Scheduler

The following message definition is a command to the Gryphon scheduler from a client. This scheduler command sets up periodic transmission of a J1850 message (header 0x01,0x02,0x03; data 0x04,0x05). This message is set up to be transmitted 10,000 times with a period of 100mS.


Frame header: 

field            offset    size    value 
---------------------------------------- 
src              0         1       SD_CLIENT (0x03) 
srcchan          1         1       c_id (obtained from client registration) 
dst              2         1       SD_SCHED (0x10) 
dstchan          3         1       1 
msglen           4         2       0x30,0x00 (48 bytes follow frame header) 
frametype        6         1       FT_CMD (0x01) 
reserved         7         1       0 


Command header: 

cmd              8         1       CMD_SCHED_TX (0x70) 
context          9         1       0 
reserved         10        2       0,0 

Command Data: 

(schedule information) 
iterations       11        4       0x01,0x00,0x00,0x00 (1 iteration of whole list) 
flags            15        4       0x00,0x00,0x00,0x00 (message list) 
sleepvalue       19        4       0x00,0x00,0x00,0x00 
transmitcount    23        4       0x10,0x27,0x00,0x00 (10000 iterations of this msg) 
transmitperiod   27        4       0x64,0x00,0x00,0x00 (100mS period) 
flags            32        2       0x00,0x00 
channel          34        1       0x01 (assuming J1850 is on channel 1) 
reserved         35        1       0x00 

(message definitions) 
header length    36        1       0x03 (3-byte J1850 header) 
header bits      37        1       0x18 (24 bits) 
data length      38        2       0x02,0x00 (2 bytes in J1850 data field) 
extra length     40        1       0x00 (no extra data) 
mode             41        1       MODE_TX (0x80) 
priority         42        1       0x00 
status           43        1       0x00 
timestamp        44        4       0x00,0x00,0x00,0x00 
context          48        1       0x00 
reserved         49        3       0x00,0x00,0x00 

(message data) 
J1850 header     52        3       0x01,0x02,0x03 
J1850 data       55        2       0x04,0x05 

This document was obtained from:

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

Copyright © 2003 Dearborn Group Inc.