Skip to content
biappi edited this page Aug 19, 2012 · 2 revisions

NHL2 Messages

Get Service Version

Layout:

0x00 | uint32_t | Message Id: 0x02536756

Expected reply:

Get Driver Version

Layout:

0x00 | uint32_t | Message Id: 0x02446744

Expected reply:

Get Firmware Version

Layout:

0x00 | uint32_t | Message Id: 0x02436746

Expected reply:

Get Serial Number

Layout:

0x00 | uint32_t | Message Id: 0x02436753

Expected reply:

Get Device Available

Layout:

0x00 | uint32_t | Message Id: 0x02446743

Expected reply:

Device State Change

Layout:

0x00 | uint32_t | Message Id: 0x02444e00
0x04 | uint32_t | New device state

Expected reply:

Get Display Inverted

Layout:

0x00 | uint32_t | Message Id: 0x02646749
0x04 | uint32_t | Display Id

Expected reply:

Get Display Contrast

Layout:

0x00 | uint32_t | Message Id: 0x02646743
0x04 | uint32_t | Display Id

Expected reply:

Get Display Backlight

Layout:

0x00 | uint32_t | Message Id: 0x02646742
0x04 | uint32_t | Display Id

Expected reply:

Get Device Enabled

Layout:

0x00 | uint32_t | Message Id: 0x02446724
0x04 | uint32_t | Device Id ?

Expected reply:

Set Focus

Layout:

0x00 | uint32_t | Message Id: 0x02434e00
0x04 | uint32_t | 'true' or 0

Expected reply:

Device Connect

Layout:

0x00 | uint32_t | Message Id: 0x02444300
0x04 | uint32_t | Controller kind Id (0x........ for Maschine)
0x08 | uint32_t | ?
0x0c | uint32_t | Client Role ?
0x10 | uint32_t | Session name length
0x14 | char[]   | Session name string

Expected reply:

Get Float Property

Layout:

0x00 | uint32_t | Message Id: 0x02566766
0x00 | uint32_t | Property Id (usually four-char code, like 'PadS')

Expected reply:

Set Notification Port Name

Layout:

0x00 | uint32_t | Message Id: 0x02404300
0x04 | uint32_t | undefined / garbage
0x08 | uint32_t | undefined / garbage
0x0c | uint32_t | Name lenght
0x10 | char[]   | Name string

Expected reply:

Display Draw

Layout:

0x00 | uint32_t  | Message Id: 0x02647344
0x04 | uint32_t  | Display Id | 0x20000000
0x08 | uint16_t  | Update rect origin x
0x0a | uint16_t  | Update rect origin y
0x0c | uint16_t  | Update rect size width
0x0e | uint16_t  | Update rect size height
0x10 | uint32_t  | data length in bytes
0x14 | uint8_t[] | encoded bitmap data

Expected reply:

Wheels Changed

Layout:

0x00 | uint32_t | Message Id: 0x02654e0
0x04 | uint64_t | Probably some kind of timestamp
0x0c | uint32_t | Number of events
0x10 | Events[] | Events description

Events:
0x00 | uint32_t | Wheel number
0x04 | float    | Change delta

Expected reply:

Pads Changed

Layout:

0x00 | uint32_t | Message Id: 0x02504e00
0x04 | uint64_t | Probably some kind of timestamp
0x0c | uint32_t | Number of events
0x10 | Events[] | Events description

Events:
0x00 | uint32_t | Pad number
0x04 | uint32_t | Event state
0x08 | uint32_t | Pressure

Expected reply:

Set Led State

Layout:

0x00 | uint32_t | Message Id: 0x026c7500
0x04 | uint32_t | Number of leds in device
0x08 | char[]   | Array of intensity of every led in device

Expected reply: