Individual Identification Function - Mitsubishi Electric MELSEC Q Series User Manual

Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

11.8.2

Individual identification function

This function prevents creation of unauthorized copy system (imitation) of the C Controller module.
The C Controller module can read the individual identification information by accessing to a certain memory.
User program(s) that is not activated by the other C Controller modules can be created by the user program by
implementing the authentication function (activation function) that utilizes the individual identification information.
(1) Q24DHCCPU-V/-VG/-LS and Q26DHCCPU-LS
(a) Read-out method
Described below is the procedure to read the individual identification information.
1.
Acquire device setting register address
In the pciFindDevice function
CH2] and acquire PCI bus No. (int BusNo), PCI device No. (int DeviceNo), and PCI function number (int
FuncNo).
status = pciFindDevice( 0x8086, 0x10D3, Index, &BusNo, &DeviceNo, &FuncNo);
In the pciConfigInLong function
[0010
] and acquire the base address (UINT32 BaseAddr).
H
status = pciConfigInLong ( BusNo, DeviceNo, FuncNo, 0x10, &BaseAddr );
*1 :
When using pciFindDevice function and pciConfigInLong function, include the include file "pciConfigLib.h" (path:
\WindRiver\vxworks-6.8\target\h\drv\pci).
2.
Calculate the read register (EERD) address
Add an offset value [0014
EERD = (ULONG*)(BaseAddr + 0x0014);
3.
Read the individual identification information.
The individual identification information value is stored in read register (EERD) read addresses (0000
0002
) as illustrated below.
H
[Example] If the individual identification information is "00:26:92:1E:8F:F0"
Read-out
address
The read register (EERD) specifications are as follows:
[bit 0]
START Start reading (START bit)
[bit1]
DONE End reading (DONE bit)
[bit 2 to 15]
ADDR
[bit 16 to 31] DATA
Set any of the target addresses 0000
When data reading is done, the End read (DONE bit) turns to "1". Then confirm data reading completion and acquire read
data (DATA) information.
For "-LS", consult with the
partner (operating system vendor).
*1
, specify the vendor ID [8086
*1
, specify BusNo, DeviceNo, FuncNo, and base address register 0
] to the base address acquired by the pciConfigInLong function.
H
b15
b8 b7
0000
26
H
0001
1E
H
0002
F0
H
Read address (0000
to 0002
)
H
H
Read data
to 0002
in ADDR and write "1" in Start reading (START bit), then data reading starts.
H
H
CHAPTER 11 BASIC FUNCTIONS
Q24DHC-V
Q24DHC-VG
Q24DHC-LS
], device ID [10D3
H
b0
00
Individual identification information 2, 1 byte
92
Individual identification information 4, 3 bytes
8F
Individual identification information 6, 5 bytes
Q26DHC-LS
Q12DC-V
], int Index[0 = CH1, 1 =
H
-
H
179
11

Advertisement

Table of Contents
loading

Table of Contents