KEMBAR78
Keypad CANControl | PDF | Computer Keyboard | Electrical Connector
0% found this document useful (0 votes)
11 views8 pages

Keypad CANControl

Uploaded by

haruki wiring
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views8 pages

Keypad CANControl

Uploaded by

haruki wiring
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

KEYPAD CAN BUS CONTROL DETAILS

version: 0.2
date: 2019/09/11
ELECTRICAL CONNECTION

TERMINAL Function
1 (blue) CAN L
2 (white) CAN H
3 (black) Ground
4 (red) Power (12-24V)

The mating connector type is Amphenol AT06-4S.

KEYBOARD

CAN-L

CAN-H

Terminator
Terminator

CAN BUS
DEFAULT SETTINGS

Parameter Default vale


CAN Speed 500kbps
CAN IDs 0x195 (BASE), 0x215 (LED), 0x615 (RCV), 0x715(STATUS)

During the start up the device send out the one status message (0x715 by default).
Depends on base CAN ID, LED, RCV and STATUS messages ID changes.
For example for base CAN ID 0x181, LED = 0x201, RCV = 0x601, STATUS = 0x701.
To determine device base ID status message could be observed.
INITIALISATION
To initialise all keypads on the bus the following message need to be sent

CAN ID DLC 0 1 2 3 4 5 6 7
0x0 8 0x1 0x0 0x0 0x0 0x0 0x0 0x0 0x0

IMPORTANT!!! The initialisation message must be sent prior to send any other
commands

CAN SPEED CHANGE

To change CAN SPEED the following message should be sent:


CAN ID DLC 0 1 2 3 4 5 6 7
RCV ID 8 0x23 0x0 0x65 0x01 0x11 SPD 0x0 0x0

SPD VALUE BAUD RATE


0 125kbps
1 250kbps
2 500kbps

Sample message for keyboard with 0x195 BASE ID (from PCAN-View software) to change speed
to 250kbps.
BASE ID CHANGE

To change BASE ID the following message should be sent:


CAN ID DLC 0 1 2 3 4 5 6 7
RCV ID 8 0x23 0x0 0x65 0x01 0x70 NEW ID 0x0 0x0

New BASE ID = 0x180 + NEW ID


New RCV ID = 0x600 + NEW ID

Sample message for keyboard with 0x195 BASE ID (from PCAN-View software) to change BASE
ID to 0x194
SETTING BACKLIGHT COLOR

CAN ID DLC 0 1 2 3 4 5 6 7
RCV ID 8 0x2f 0x03 0x20 0x4 Color 0x0 0x0 0x0

Where Color:
0x1 - Red
0x2 - Green
0x3 - Blue
0x4 - Yellow
0x5 - Cyan
0x6 - Violet
0x7 - White
0x8 - Amber
0x9 - Yellow / Green

SETTING BACKLIGHT BRIGHTNESS

CAN ID DLC 0 1 2 3 4 5 6 7
RCV ID 8 0x2f 0x03 0x20 0x2 Intensity 0x0 0x0 0x0

Where Intesity 0x0-0x3f

SETTING KEY LED BRIGHTNESS

CAN ID DLC 0 1 2 3 4 5 6 7
RCV ID 8 0x2f 0x03 0x20 0x1 Intensity 0x0 0x0 0x0

Where Intesity 0x0-0x3f


SETTING LED COLOR

4 pos keypad:
CAN ID: LED ID (0x215 default)

DLC: 8

Byte0: 0 0 0 0 R4 R3 R2 R1

Byte1: 0 0 0 0 G4 G3 G2 G1

Byte2: 0 0 0 0 B4 B3 B2 B1

Byte3: 0x00

Byte4: 0x00

Byte5: 0x00

Byte6: 0x00

Byte7: 0x00

6 pos keypad:
CAN ID: LED ID (0x215 default)

DLC: 8

Byte0: 0 0 R6 R5 R4 R3 R2 R1

Byte1: 0 0 G6 G5 G4 G3 G2 G1

Byte2: 0 0 B6 B5 B4 B3 B2 B1

Byte3: 0x00

Byte4: 0x00

Byte5: 0x00

Byte6: 0x00

Byte7: 0x00

8 pos keypad:
CAN ID: LED ID (0x215 default)

DLC: 8

Byte0: R8 R7 R6 R5 R4 R3 R2 R1

Byte1: G8 G7 G6 G5 G4 G3 G2 G1

Byte2: B8 B7 B6 B5 B4 B3 B2 B1

Byte3: 0x00

Byte4: 0x00

Byte5: 0x00

Byte6: 0x00

Byte7: 0x00
12 pos keypad:
CAN ID: LED ID (0x215 default)

DLC: 8

Byte0: R8 R7 R6 R5 R4 R3 R2 R1

Byte1: G4 G3 G2 G1 R12 R11 R10 R9

Byte2: G12 G11 G10 G9 G8 G7 G6 G5

Byte3: B8 B7 B6 B5 B4 B3 B2 B1

Byte4: 0 0 0 0 B12 B11 B10 B9

Byte5: 0x00

Byte6: 0x00

Byte7: 0x00

READING PRESSED KEYS


To read actually pressed keys the message 0x180 + KEYPAD ID.
By default receive ID is 0x195 (0x180 + 0x15)

CAN ID DLC 0 1 2 3 4 5 6 7
RCV ID 5 Key Key 0 0 Time 0 0 0
mask L mask H stamp

You might also like