This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
RTCM V2 USER MANUAL 19/01/2018 XAP-BE
XAP-RTCM XAP Technology - 298, rue des Entrepreneurs - 30420 Calvisson - France Tél +33 (0)4 66 02 94 94 - Fax +33 (0)4 66 02 94 90
For years, production car uses relays fuses or circuit breakers to protect electrical system from short circuit damages or even fire in case of wiring error.
Such a system is not suitable for racing use. Relays and fuses are exposed to a harsh environment of heat and vibration which can cause unintended electrical shutdowns. Furthermore, fuses and relays wiring are often very complex and make fault tracing complicated, in particular if errors happen on track.
Nowadays, we have for many years done away these vulnerable components and have replaced them with computer-controlled modules.
The RTCM Power Module is a microprocessor-controlled module, which is fully configurable, integrates short-circuit protection and auto-rearming outputs. Moreover, the monitoring of input/output states allows the customer to easily diagnose a failure.
Based on our power boxes experience and success, the RTCM is a very powerful, flexible and technically advanced module. It is a huge step ahead of our competitors, in technology, features and very high current handling ability.
The RTCM has a dense concentration of high power circuits and accepts complex order to activate and protect complex electrical systems. This system can receive external order from different management system (ie Engine Control Unit (ECU) or building management system [Illumination (lighting) control, electric power control ,Heating, ventilation and air-conditioning (HVAC),Security and observation, Access control, Fire alarm system] …)
RTCM module is delivered with a foam coating on its lower side. It has specially be designed to protect it from hard vibration of a racing car. It is strongly advised to keep it when RTCM installation to avoid any damages.
This is the application main windows, which is divided in two areas. The first one for the six types of switches (on the left of the screen) and the second one for the outputs (on the right of the screen). The user can set INPUTS/OUTPUTS name by clicking on them.
The six inputs categories are:
- 10 Physical switches (some are unused according to the hardware configuration),
- 10 Custom Physical switches (available by clicking on show custom panel),
This windows allows you to configure the CAN bus and other specific parameters of the power box
3.4.1 CAN Parameters: - Bitrate CAN1: Set the CAN1 bus speed (1Mbit/s, 500kbit/s, 250kbit/s, 125kbit/s)
- Bitrate CAN2: Set the CAN2 bus speed (1Mbit/s, 500kbit/s, 250kbit/s, 125kbit/s)
- Set Switches: Specify on which CAN Bus the 5x3 external Multiplexed Keypad PF0329-A is connected. Set it to OFF if you don’t use it.
- CAN Base Adr, Is extended: The RTCM sends many CAN messages on CAN1 bus (refer to RTCM CAN protocol description). Those parameters specify the CAN base address of all these outputs CAN messages. By default base address is 0x400.
3.4.2 RPM Data DO NOT USE
3.4.3 Frame CANx: The RX CAN id used on each CAN buses will be listed here.
3.4.4 Specific function - Return Wiper Position: If you are using the RTCM to control wipers, this specifies
on which Physical switch the Return Wiper Position signal is connected. It allows RTCM to know when to stop wiper motor.
RTCM_Conf allows you to link Inputs and outputs using a wide range of mode and conditions.
Outputs are linked to inputs by a state object we called TRIGGER. A trigger can have two states only:
- Trigger ON
- Trigger OFF
Each inputs can manage 3 triggers at most. Those triggers will evolve according to Input configuration. They are then used to specify Outputs behaviour.
The use of triggers to link inputs and outputs allows user to specify advanced output commands.
For example, using triggers, user can set an output ON only if a button is pressed for 2 seconds, or blink the output when the activation input is detected.
To begin, let’s see how an Input operates and how to configure it.
To manage its triggers, an input needs a primary state. Let’s call it the INPUT STATE. The INPUT STATE is a 0/1 value which is decoded differently depending on the INPUT TYPE. We will see first how the INPUT STATE is decoded, then how it manages triggers
To setup an input, you have to double-click on it, a configuration panel will appear.
3.5.1.1 Overview Informations:
Place the cursor on the Physical Name to display the list of the outputs controlled by this input.
Input information:
Background Color Description
INCATIVE
ACTIVE
CAN message not received
INPUT STATE
TRIGGERS:
T1 T2 T3
INPUT STATE decoding Triggers management
according to the COMMAND MODE
INPUT TYPE : Physical CAN Multiplexed CAN Analog Analog
In this part, we will see how the INPUT STATE is decoded according to the input type. This part also describes the additional information for each input type.
Physical switch:
INPUT TYPE : Physical CAN Multiplexed CAN Analog Analog
INPUT STATE INPUT STATE decoding
For physical switches, there is no specific parameter used to decode the INPUT STATE. It takes directly the physical state.
INPUT SIGNAL INPUT STATE
Button pressed, input connected to GND 1
Button released, input internally pulled to 5V 0
For other displayed parameters, please refer to the Command Modes and Triggers management chapter.
Analog switches are used to decode the INPUT STATE from a physical analog input. An input voltage (0V to 5V) is read and then converted into 0/1 according to the specified Threshold and Hysteresis
Specify Threshold value in mV
Specify Hysteresis value in mV
Here is how the INPUT STATE is decoded
Input voltage INPUT STATE
Is greater than Threshold 1
Is less than Hysteresis 0
Otherwise keep the previous state
For other displayed parameters please refer to the Command Modes and Triggers management chapter.
CAN Analog switches operate as Analog Switches, but instead of reading the input value from a physical analog input, the value is read from a CAN message. Here are the parameters you need to set to extract the input value from the CAN message:
Select the CAN bus you want to use
Add the desired CAN id to the list (enter HEX value)
Click to select the desired ID
Click to select the data position(0 to 7)
Click to select the data size (1byte or 2bytes)
Click to select the order of 2bytes size data
The input data is converted into 0/1 according to the specified Threshold and Hysteresis
Specify Threshold value (integer)
Specify Hysteresis value (integer)
Here is how the INPUT STATE Is decoded
Input value INPUT STATE
Is greater than Threshold 1
Is less than Hysteresis 0
Otherwise keep the previous state
For other displayed parameters please refer to the Command Modes and Triggers management chapter.
There are common parameters between different modes. These parameters are used to specify whether an additional operation must be performed on the INPUT STATE before it is used to manage triggers.
Here are the common parameters:
Specify if the INPUT STATE should be inverted before it is used to manage triggers
This parameter is only used for those modes: SW, CLIGNO. Toggle mode is already active on other command modes.
Refer to the Command mode details.
Set it to ON to save the triggers state when the RTCM turns OFF. The triggers will get saved state when the RTCM will have restarted.
Otherwise triggers will be reset at every boot.
This parameter is ignored for modes: WIPER, WIPER_INT, WASHER.
Debounce time: The INPUT STATE must keep the same value during this time to be taken into account by the trigger management
Triggers Management
Once common parameters are applied to the INPUT STATE, it is used to manage triggers according to the selected Command Mode.
This part describes the triggers behaviour for each command mode.
Each input trigger can be monitored from the configuration panel.
This mode is generally used to flash high beams. Triggers Description:
T1 Flashing trigger
Triggers behaviour:
T1 will start/stop flashing each time the INPUT STATE describes a rising edge (goes from 0 to 1). T1 automatically stops flashing after the specified number of flash
Blinking Parameters:
Specify the blinking period (ms)
Specify the percentage of ON time (0 to 100). In this example, T1 will be active during 250ms and inactive during 250ms for each flash
This mode is used to control wiper. If Return Wiper Position is specified in Advanced settings, all outputs controlled by this mode remain active until the wiper return (position zero) is detected. Moreover, if HP3 is used as wiper output (as recommended), HP3 is automatically connected to GND when wipers need to be stopped. Triggers Description:
T1 Triger for wiper low speed output
T2 Triger for wiper high speed output
Triggers behaviour:
The input describes the cycle state machine below. It goes to the next state each time the INPUT STATE describes a rising edge (goes from 0 to 1)
This mode is used to generate at most three triggers in counter mode. Triggers Description:
T1 Standard ON/OFF trigger
T2 Standard ON/OFF trigger
T3 Standard ON/OFF trigger
Triggers behaviour:
CPT triggers will describe a counter value which will increment by one each time the INPUT STATE describes a rising edge (goes from 0 to 1). Once the maximum value is reached, the input cycles to the initial state. The maximum value depends on the number on trigger:
Nb Trig Maximum counter value
1 1
2 3
3 7
Parameters:
If set to 1, the IDDLE state is ignored, the input directly goes to STATE1
Specify the number of trigger (ie: number of state)
Click to specify the action to be done when a CAN message reception timeout (1 second) occurs on one of the linked trigger
- LEAVE_ON: the output keep its last state
- ON_10S_R: the output will keep its last state for 10 seconds. If the expected CAN message is still not received after this 10 seconds, the output will turn OFF. The output will retrieve its normal operation when a next valid CAN message is received.
- ON_10S_NR: the output will keep its last state for 10 seconds. If the expected CAN message is still not received after this 10 seconds, the output will stay OFF until next boot.
- SET_OFF_R: the output is directly set OFF. It retrieves its normal operation when a valid CAN message is received.
- SET_OFF_NR: the output will stay OFF until next boot.
Click the specify the overcurrent blanking time detection (used to allow overcurrent peak):
In this part, we will see how to link the input triggers to an output. An output can be controlled by 16 triggers at most: 4 groups of four triggers. This allows user to specify a complex activation condition: when multiple triggers need to be checked.
Triggers are arranged in four groups. Each group will have a state according to its triggers and its configuration:
A trigger group will be ACTIVE/INACTIVE according to its triggers and operator:
- OR: the group is active if at least one trigger is active. The group is inactive if not.
- AND: the group is active if all specified triggers are active. The group is inactive if not.
- VAL: the group is active if the specified triggers state match to the specified group value ( specify a hexadecimal value, Trig 0, Trig 1, Trig 2, Trig 3 states respectively correspond to the bit0, bit1, bit3, bit4 of the value ). The group is inactive if not.
In the example above, the group is active only if CMD3|T1 is active and CMD2|T1 and CMD3|T1 are inactive.
Then an operation OR/AND is done between all enabled groups to determine the output state:
- OR: the output is set ON if at least one trigger group is enabled and active, set OFF if not.
- AND: the output is set ON if all enabled trigger groups are active, set OFF if not.