CLASSIC
Modul: modemanagementguide
Rolle: heuristic
Konfidenz: 90%
SNIP_CLASSIC_MODEMANAGEMENTGUIDE_SECTION_3_4_3_J1939_Networkmanagement
Wortlaut
3.4.3 J1939 Networkmanagement
In contrast to current AUTOSAR network management, the task of J1939 network management is not to handle sleep and wake-up of ECUs, but to assign unique addresses
to each node represented by an ECU.
This is achieved by sending the AddressClaimed (AC, 0x0EE00) parameter group at
start-up, which announces the desired address. If another node claims the same address, and has higher priority, the node has to go silent after sending the CannotClaimAddress parameter group (AC with null address as SA), or try to use another
address.
To support this use case the BswM is extended to accept state change indications from
the J1939Nm via the API function BswM_J1939Nm_StateChangeNotification()
(see also 3.2.2.2.16).
Guide to Modemanagement
Depending on the state indicated by the network management the BswM needs to
switch ComIPduGroups of COM, PduRRoutingPathGroups of PduR, and general request handling of the J1939Rm.
The
first
two
actions
are
realized
via
BswMPduGroupSwitch-
and
BswMPduRouterControl -actions. The J1939 Request Manager shall be switched
using the BswMJ1939Rm action.
COM is expected to have IPDU groups containing all locally received and transmitted
I-PDUs for each network.
The PduR shall be configured in the same way, having
RoutingPathGroups for all locally received and transmitted IPDUs for each channel,
excluding the received I-PDU for the Request message forwarded to the J1939Rm.
The BswM must then be configured to switch on and off the aforementioned IPDU
groups and PduRRoutingPathGroups depending on the reported NM states, as well as
general request handling of the J1939 Request Manager. The following rule shows the
actions of the BswM depending on the NM states.
Listing 3.21: Rule to implement network management according to J19392
rule J1939_nm_normal_operation initially false {
if ( J1939NmState == NM_STATE_NORMAL_OPERATION ) {
actionlist J1939NormalOperationActions
}
}
actions J1939NormalOperationActions on condition {
PduGroupSwitch {
init true
enable ArMmExample.EcuC.MyCom.J1939IPDUS
}
PduRoute enable J1939_RoutingPath
custom "J1939Rm_SetState(J1939RM_STATE_ONLINE)"
custom "Xcp_SetTransmissionMode(CHANNEL1,XCP_TX_ON)"
}
rule J1939_nm_offline initially false {
if ( J1939NmState != NM_STATE_NORMAL_OPERATION ) {
actionlist J1939OfflineActions
}
}
actions J1939OfflineActions on condition {
PduGroupSwitch {
disable ArMmExample.EcuC.MyCom.J1939IPDUS
}
PduRoute disable J1939_RoutingPath
custom " J1939Rm_SetState(J1939RM_STATE_OFFLINE)"
custom "Xcp_SetTransmissionMode(CHANNEL1,XCP_TX_OFF)"
}
2It is recommended to use the BswMJ1939Rm action instead of the custom calls. The custom calls
are only used in this listing as they are not supported in the current ARText version.
Guide to Modemanagement
Versionen & Provenienz · Zugeordnete Anforderungen
Diese Angaben zeigt der Versions-Explorer.
Begründung & Zuweisungs-Evidenz
J1939Rm state enumeration definition
Dokumenten-Herkunft & Rückverfolgbarkeit
| Spezifikations-Dokument | ModeManagementGuide.pdf |
|---|---|
| Dokumentseite | Seite 45 |
| Ziel-Modul | modemanagementguide (classic) |
| Ziel-Anforderung | SWS_J1939Rm_00049 |
| Semantische Rolle | heuristic |
| Automatisierungs-Konfidenz | 0.90 |