Access Control

From CANopen-Lift
Revision as of 08:36, 13 August 2012 by JHell (talk | contribs) (moved from German Wiki to the English Wiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Proposal for the new virtual device: access request

General

As Access request device are all devices named, which deliver similar data information and do not need interaction. Part of that devices are e. g.:

  • RFID reader (transponder cards)
  • Chip card, smart card
  • Barcode reader
  • Fingerprint sensor
  • Voice detector

This devices can read different media. Every media is assigned one channel or every transponder type is assigned one channel.

There are two kinds of operating modes:

  1. Continuous reading: It is tried to search for a media continuously. If there is one found this event is signalized with a PDO and the data is provided in the data object. At the same time the timer for the upload timeout is running. At this time the searching for a media is stopped. After releasing the data object the searching is started again.
  2. One time read: It is only tried to search for a media only one times. The upload timeout does not have any meaning at this mode (the timeout is infinite).

The processing of the data from the device is not part of the specification (e. g. data base, signals to lift controller).

Messages

Message from device (PDO - same like a virtual input)

Upload request: Device has detected media (e. g. transponder card found):

Byte 0
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Basic function
Sub function
Lift
Floor
Door
Data
0x0F
Channel
Shaft
Floor
Door
1

Upload-Timeout has expired or data object was cleared:

Byte 0
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Basic function
Sub function
Lift
Floor
Door
Data
0x0F
Channel
Shaft
Floor
Door
0


Messages to device (PDO - same like virtual output)

Upload acknowledgement:

Byte 0
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Basic function
Sub function
Lift
Floor
Door
Data
0x0F
Channel
Shaft
Floor
Door
data

Data:

Bit 7
Bit 6 .. 4
Bit 3 .. 1
Bit 0
Acknowledge
Property parameter
Property
Status

With a set acknowledge bit the data object is cleared.

Property:

Value
Description Virtual Output
DescriptionAccess Request Ack.
0 Default Continuous reading
1 Continuous Continuous reading
2 Impulse One time reading
3 .. 7 .. reserved


Access device objects

Device Configuration

Object description

Index 61B0h
Name Device Configuration
Object Code Array
Data Type Unsigned16
Category Mandatory

Entry description

Sub-Index 00h
Description Highest sub-index supported
Entry Category Mandatory
Access c
PDO Mapping no
Value Range 01h
Default value 01h
Sub-Index 01h
Description Upload timeout in ms
Entry Category Mandatory
Access rw
PDO Mapping no
Value Range Unsigned16
Default value 1000

Value definition

An upload timeout of zero means timer disabled. The timer is only used in continuous mode.


Channel Type ID

Object description

Index 61B1h
Name Channel Type ID
Object Code Array
Data Type Unsigned32
Category Mandatory

Entry description

Sub-Index 00h
Description Highest sub-index supported
Entry Category Mandatory
Access c
PDO Mapping no
Value Range 01h .. FEh
Default value 01h
Sub-Index 01h
Description Channel 1 Type ID
Entry Category Mandatory
Access rw
PDO Mapping no
Value Range Unsigned32
Default value no
...

Value definition

Byte 3
Byte 2
Byte 1
Byte 0
Main Type
Sub Type
Features
Optional

Main Type definition

Main Type
Description
0
Channel disabled
1
RFID
2 .. 127
Reserved
128 .. 255
Manufacture specific

Sub Type definition if Main Type = 1 (RFID)

Sub Type
Description
0
EM4001/EM4002/EM4101
1
EM4050
2 .. 255
Reserved

Features

Bit
Description
0 .. 7
Reserved

Optional

Manufacture specific


Channel Type Info

Object description

Index 61B2h
Name Channel Type Info
Object Code Array
Data Type Visible string
Category Mandatory

Entry description

Sub-Index 00h
Description Highest sub-index supported
Entry Category Mandatory
Access c
PDO Mapping no
Value Range 01h .. FEh
Default value 01h
Sub-Index 01h
Description Channel 1 Type
Entry Category Mandatory
Access ro
PDO Mapping no
Value Range Visible string
Default value no
...


Channel Activation And Commands

Object description

Index 61B3h
Name Channel Activation And Commands
Object Code Array
Data Type Unsigned32
Category Mandatory

Entry description

Sub-Index 00h
Description Highest sub-index supported
Entry Category Mandatory
Access c
PDO Mapping no
Value Range 01h .. FEh
Default value 01h
Sub-Index 01h
Description Channel 1 Activation and Commands
Entry Category Mandatory
Access rw
PDO Mapping no
Value Range Unsigned32
Default value no
...

Value definition

Bit
Description
1 .. 0
Search command: 0 = disable, 1 = continuous, 2 = one time reading, 3 = reserved
2
Delete data object: 0 = no action, 1 = delete data object
31 .. 3
Reserved


Channel Data

Object description

Index 61B4h
Name Channel Data
Object Code Array
Data Type Domain
Category Mandatory

Entry description

Sub-Index 00h
Description Highest sub-index supported
Entry Category Mandatory
Access c
PDO Mapping no
Value Range 01h .. FEh
Default value 01h
Sub-Index 01h
Description Channel 1 Data
Entry Category Mandatory
Access rw
PDO Mapping no
Value Range Domain
Default value no
...

Value definition

Is there no data available the length of the object is zero.

The object is cleared when:

- the acknowledge bit in the upload acknowledgement PDO is set, or
- the channel is deactivated, or
- the upload timeout is expired, or
- in the channel command bit 2 is set


Channel Data Read/Write Start Address (optional)

Object description

Index 61B5h
Name Channel Data Read/Write Start Address
Object Code Array
Data Type Unsigned32
Category Optional

Entry description

Sub-Index 00h
Description Highest sub-index supported
Entry Category Mandatory
Access c
PDO Mapping no
Value Range 01h .. FEh
Default value 01h
Sub-Index 01h
Description Channel 1 Data Read/Write Start Address in bytes
Entry Category Optional
Access rw
PDO Mapping no
Value Range Unsigned32
Default value 0
...

Value definition

With this object an offset in bytes to the beginning of the data can be set for reading or writing.


Channel Data Read/Write Length (optional)

Object description

Index 61B6h
Name Channel Data Read/Write Length
Object Code Array
Data Type Unsigned32
Category Optional

Entry description

Sub-Index 00h
Description Highest sub-index supported
Entry Category Mandatory
Access c
PDO Mapping no
Value Range 01h .. FEh
Default value 01h
Sub-Index 01h
Description Channel 1 Data Read/Write Length in bytes
Entry Category Optional
Access rw
PDO Mapping no
Value Range Unsigned32
Default value 0
...

Value definition

With this object the length in bytes can be set for reading or writing the data object.

A data read/write length value of zero means all available bytes.



The first proposal of RSbySCHAEFER could be found here:

Access_Control_(RSbySCHAEFER-2009)