Skip to main content

on frPOCState

Valid for: CANoe DE

Function Syntax

on frPOCState;

Description

The event procedure is called whenever there is a change of state on the FlexRay Communication Controller’s protocol operation state machine.

Parameters

Selectors

  • Time (data type dword) / Time_ns (data type int64)
    • The transition time stamp that has been synchronized with the global time base in the computer (CAN hardware or computer system clock).
    • The time stamp must be used if time relations should be regarded with events from other sources. This time stamp is also output in the Trace Window when receiving a symbol.
    • Timer unit: 10 microseconds.
    • NS timer unit: nanoseconds.
    • Write-protected!
  • MsgChannel
    • Channel in the tool that the FlexRay CC determines.
    • Write-protected!
  • FR_POCState
    • The POC state of the E-Ray and the cold-start helper CC can be changed with the function FrSetPocState. If the desired POC-state is reached, then this event is generated.
    • Identifies the new state of the POC state machine (data type LONG):
      • E-Ray: -2, Coldstart Helper: 254, POC State: SYNC LOST
      • E-Ray: -1, Coldstart Helper: 255, POC State: UNKNOWN
      • E-Ray: 0, Coldstart Helper: 256, POC State: DEFAULT CONFIG
      • E-Ray: 1, Coldstart Helper: 257, POC State: READY
      • E-Ray: 2, Coldstart Helper: 258, POC State: NORMAL ACTIVE
      • E-Ray: 3, Coldstart Helper: 259, POC State: NORMAL PASSIVE
      • E-Ray: 4, Coldstart Helper: 260, POC State: HALT
      • E-Ray: 5, Coldstart Helper: 261, POC State: MONITOR MODE
      • E-Ray: 15, Coldstart Helper: 262, POC State: CONFIG
      • E-Ray: 16, Coldstart Helper: 263, POC State: WAKEUP STANDBY
      • E-Ray: 17, Coldstart Helper: 264, POC State: WAKEUP LISTEN
      • E-Ray: 18, Coldstart Helper: 265, POC State: WAKEUP SEND
      • E-Ray: 19, Coldstart Helper: 266, POC State: WAKEUP DETECT
      • E-Ray: 32, Coldstart Helper: 267, POC State: STARTUP PREPARE
      • E-Ray: 33, Coldstart Helper: 268, POC State: COLDSTART LISTEN
      • E-Ray: 34, Coldstart Helper: 269, POC State: COLDSTART COLLISION RESOLUTION
      • E-Ray: 35, Coldstart Helper: 270, POC State: COLDSTART CONSISTENCY CHECK
      • E-Ray: 36, Coldstart Helper: 271, POC State: COLDSTART GAP
      • E-Ray: 37, Coldstart Helper: 272, POC State: COLDSTART JOIN
      • E-Ray: 38, Coldstart Helper: 273, POC State: INTEGRATION COLDSTART CHECK
      • E-Ray: 39, Coldstart Helper: 274, POC State: INTEGRATION LISTEN
      • E-Ray: 40, Coldstart Helper: 275, POC State: INTEGRATION CONSISTENCY CHECK
      • E-Ray: 41, Coldstart Helper: 276, POC State: INITIALIZE SCHEDULE
      • E-Ray: 42, Coldstart Helper: 277, POC State: ABORT STARTUP
      • E-Ray: 43, Coldstart Helper: 278, POC State: STARTUP SUCCESS
      • E-Ray: 100, Coldstart Helper: —, POC State: RESERVED FOR INTERNAL USE
    • Write-protected!
  • Type
    • Identifies the FlexRay hardware type (data type: dword)
      • 0: HW Independent
      • 1: Invalid
      • 2: Not used
      • 3: Not used
      • 4: FlexCard Cyclone II
      • 5: VN
      • 6: Reserved for internal use
    • Write-protected!
  • FR_Info1
    • Contains extended information (data type: dword):
    • If Type == 1:
      • 0: Interface is synchronized, but passive
      • 1: Interface is synchronized and active
      • 2: Interface is not synchronized
      • 3: Unknown
    • Write-protected!
  • FR_Info2
    • Contains extended information (data type: dword):
      • 0: WAKEUP UNDEFINED
      • 1: WAKEUP RECEIVED HEADER
      • 2: WAKEUP RECEIVED WUP
      • 3: WAKEUP COLLISION HEADER
      • 4: WAKEUP COLLISION WUP
      • 5: WAKEUP COLLISION UNKNOWN
      • 6: WAKEUP TRANSMITTED
      • 7: WAKEUP RECEIVED (Only with VN interfaces)
      • 16: WUP DETECTED (Only with VN interfaces)
    • Write-protected!
  • FR_Info3
    • Contains extended information (data type: dword): Not used as yet.
    • Write-protected!
  • FR_Info4
    • Contains extended information (data type: dword).
    • FR_POCState is set to -1 and FR_Info4 is set to 1, when the trigger input of the VN interface has recognized an appropriate edge.
    • Write-protected!
  • FR_Cycle
    • Current FlexRay cycle number.
    • Write-protected!

Example

The following program reacts on Protocol Operation Control state changes in the FlexRay interface and prints them in the Write Window, Trace Window, and logging.